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

조회 수: 18 (최근 30일)
Jethro
Jethro 2011년 12월 3일
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
Jan
Jan 2011년 12월 3일
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

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2011년 12월 3일
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
Jethro
Jethro 2011년 12월 4일
I tried but it doesn't work!
Walter Roberson
Walter Roberson 2011년 12월 4일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Paulo Silva
Paulo Silva 2011년 12월 3일

Image Analyst
Image Analyst 2011년 12월 3일
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

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by