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

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 Comment

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

Sign in to comment.

 Accepted Answer

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 Comments

Thanks for your indications... I didn't get the result I wanted, but characters are hiding immediately after typing are the best I got! Thank you!
Then why not edit that code to not display the character in the first place?
I tried but it doesn't work!
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.

Sign in to comment.

Categories

Asked:

on 3 Dec 2011

Community Treasure Hunt

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

Start Hunting!