フィルターのクリア

How to hide alphabets behind asterisks for password in GUI?(Creating GUI using guide)

7 ビュー (過去 30 日間)
Shoaib Bilal
Shoaib Bilal 2019 年 3 月 12 日
編集済み: Jan 2019 年 3 月 12 日
LW.JPG
I want the alphabets of password to be hidden behined asterisks. How can I do this?
Kindly give a simple solution.

回答 (1 件)

Stephen23
Stephen23 2019 年 3 月 12 日
Note that MATLAB is not a secure tool suitable for handling passwords: any arbitrary function can be trivially overloaded.
  2 件のコメント
Guillaume
Guillaume 2019 年 3 月 12 日
Perhaps MATLAB is not a secure tool suitable for handling passwords should be in bold.
There is probably nothing worse than a tool that appear to be secure when it isn't. Last time I checked none of the entries on the fileexchange even made an attempt at being secure. The could all be trivially defeated.
Jan
Jan 2019 年 3 月 12 日
編集済み: Jan 2019 年 3 月 12 日
There is no chance to create a "secure Matlab function". Maybe you can obfuscate the purpose of the code be removing the comments, using dull names for variables like a,b,c,d,e,f... Then you can impede the debugger by joining all commands in one single line only. P-coding has less encryption strength than amateurs and professionals need.
A standard problem of the tools in the FileExchange is to store the password in clear text and to use strcmp to compare it. Then an evil user can shadow this function:
function T = strcmp(a, b)
T = isequal(a, 'unlockme') || builtin('strcmp', a, b);
end
Then 'unlockme' replies true in every case and the builtin strcmp() is called for other inputs only.
The best way is to write C-code without debugging information and provide the executable only. Even this can be examined and poofed easily, when it interacts with Matlab.
But there is a need for insecure dialogs hiding the password by stars: If you do not use the password inside Matlab but forward it to an external service, e.g. in the net or of the operating system. Then Matlab is not the problem, but key loggers.

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

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by