How to create a login interaface with a mask password
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Andrea Simonotti
el 12 de Dic. de 2018
Comentada: Guillaume
el 12 de Dic. de 2018
Hi, i'm doing a project for my university and i need to do an interface protected with a login and a recording page.
That interface must be composed by a edit text for the username, and a edit text for the pwd.
The issue is: how can i mask my pwd while i'm writing it, and how can i record new pwd and usernames witout touchin the .m file?
4 comentarios
Stephen23
el 12 de Dic. de 2018
@Andrea Simonotti: just keep in mind that this will NOT be secure. Any MATLAB user can overload functions or change the MATLAB Search Path, which means that they can trivially circumvent your masking.
Guillaume
el 12 de Dic. de 2018
I want to cover up the pwd like this: ****
Yes, and as I said, matlab does not have the tool to do that securely. The majority of the tools on the FileExchange (see per's answer) will only be secure against the most casual of attacker. In the first few entries that I've looked at, the only one that may be slightly secure may be https://www.mathworks.com/matlabcentral/fileexchange/19729-passwordentrydialog as it delegates the work to a Java control which you can assume has been written by people who know about security.
Writing cryptographically secure code is very hard. Most of the example you'll find will have the appearance of being secure (you'll see your ****) but are actually not secure, which in my opinion is worse than not trying to be secure as it gives a false sense of security.
Respuesta aceptada
per isakson
el 12 de Dic. de 2018
Editada: per isakson
el 12 de Dic. de 2018
Search the FileExchange for password gui and see Get Authentication and Password & spinner controls in Matlab GUI
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre .NET Events and Delegates in MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!