Hiding text of a string (like passwords) - not logindlg function

19 Ansichten (letzte 30 Tage)
Jethro
Jethro am 3 Dez. 2011
I need to set an "Edit Text" as a password input area, and I want the text entered by users is not visible, but replaced by symbols.
I'd like to have some indication to create my function. I already saw the video by Doug Hull about how to crypt the pwd, but I have to create a function because I already have a gui structure, and I have to set it after
function PWD_Callback(hObject, eventdata, handles)
Do you have any idea on how to set up work?
Thanks in advance!
  1 Kommentar
Jan
Jan am 3 Dez. 2011
Please do not post two questions for one problem. You can edit your original answer to add more information.
See: http://www.mathworks.com/matlabcentral/answers/22922-hiding-text-of-a-string-like-passwords

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jan
Jan am 3 Dez. 2011
Have you searched in this forum and found this:
? I assume one of these submissions contains enough useful code to be copied to your project.
  4 Kommentare
Jethro
Jethro am 4 Dez. 2011
I tried but it doesn't work!
Walter Roberson
Walter Roberson am 4 Dez. 2011
The very first one in Jan's list, "passcode', displays the symbol to a different area than where the text is entered, and thus would never be displaying the character entered.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

Paulo Silva
Paulo Silva am 3 Dez. 2011

Image Analyst
Image Analyst am 3 Dez. 2011
Did you see the File Exchange submissions on passwords. Most or all of those have a function that pops up a small gui and asks for, and masks, the username and password. http://www.mathworks.com/matlabcentral/fileexchange/?term=password

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by