MATLAB: Encryption of password

encryption

I want to use a password to open a folder.I am able to do that by matlab programming,but my password is shown while writing.How can i encrypt my password by '*****' while writing itself..??

Best Answer

Don't do this. Displaying a series of *'s to mask the password is not encryption. MATLAB is still saving the password in an unencrypted state despite what is shown on the screen. All the *'s are doing is hiding a security flaw.