Azzera filtri
Azzera filtri

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

7 visualizzazioni (ultimi 30 giorni)
LW.JPG
I want the alphabets of password to be hidden behined asterisks. How can I do this?
Kindly give a simple solution.

Risposte (1)

Stephen23
Stephen23 il 12 Mar 2019
Note that MATLAB is not a secure tool suitable for handling passwords: any arbitrary function can be trivially overloaded.
  2 Commenti
Guillaume
Guillaume il 12 Mar 2019
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 il 12 Mar 2019
Modificato: Jan il 12 Mar 2019
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.

Accedi per commentare.

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by