フィルターのクリア

Matlab invoke cmd.exe and ask for user name and password input

4 ビュー (過去 30 日間)
buer
buer 2015 年 1 月 19 日
回答済み: Image Analyst 2015 年 1 月 21 日
Hello everyone,
I got one problem with my username and password input... bascially what I want is when running one function, inside it will invoke cmd.exe and ask for username and password, so that user can input those in the cmd window. Then after input correct continue with the Matlab function.
So in general it is a secure way of giving input about username and password...
I checked with system function. But still not so clear. Can anyone help me with this? Thanks.
BuEr
  3 件のコメント
Geoff Hayes
Geoff Hayes 2015 年 1 月 21 日
編集済み: Geoff Hayes 2015 年 1 月 21 日
Buer - why are you invoking the command she'll to prompt the user for his/her username and password? What are you doing with that information - passing it to another program to verify it? Why not use a MATLAB prompt or GUIS to get that info, then pass that to you other program (whatever it may be) and call (or not) the MATLAB function based on the result?
buer
buer 2015 年 1 月 21 日
@Geoff Hayes . You are right...I was just stupid and think it is better way of security. Because if user input username and password as parameters to function, it will be too dangerous...maybe using prompt, I can pass those as parameters still...totally forget prompt....too much into command thinking....thanks again

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2015 年 1 月 21 日
There are password apps in the File Exchange. Search for them. http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=password

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by