How to create a login interaface with a mask password
조회 수: 5 (최근 30일)
이전 댓글 표시
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
Stephen23
2018년 12월 12일
@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
2018년 12월 12일
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.
채택된 답변
per isakson
2018년 12월 12일
편집: per isakson
2018년 12월 12일
Search the FileExchange for password gui and see Get Authentication and Password & spinner controls in Matlab GUI
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!