Login dialog with asterisk hidden password.
Updated 28 Jan 2010

View License

Editor's Note: This was a File Exchange Pick of the Week

This is a login dialog which replaces all characters typed into the password area with asterisks. Both the login and password are returned by the function as strings.

Version information can be found in the m-file. Examples can be found in the m-file help.

Note: The password is only visually hidden. While the dialog is active it is stored in the Userdata of the password edit box.

Cite As

Jeremy Smith (2024). login (https://www.mathworks.com/matlabcentral/fileexchange/8499-login), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Passwords in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Fixed typo and some issues with Escape.

-Tab no longer triggers the OK button in the password box
-Improved the script help
-Removed horizontal alignment from buttons
-Added the option to display only the password box