Dialog for querying and creating passwords.
Updated 1 Sep 2016

View License

This function displays a dialog box for a user to type in a password, obfuscated by an asterisk (*). In 'create' mode, it makes the user retype the password. You can enforce the minimum number of characters and the type of password (Alphabets Only, Numbers Only, Alphabets and Numbers, or Alphabets/Numbers/Special Characters).
pw = passwordUI()
pw = passwordUI('Create', 'AlphaNum')
pw = passwordUI('Create', 'AlphaOnly', 8)

Cite As

Jiro Doke (2024). passwordUI (, MATLAB Central File Exchange. Retrieved .

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

Inspired by: passcode

Inspired: Library Management

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Updated license