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)
Citar como
Jiro Doke (2025). passwordUI (https://www.mathworks.com/matlabcentral/fileexchange/29616-passwordui), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2010b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Programming >
- MATLAB > App Building > Migrate GUIDE Apps > Dialog Boxes > Passwords >
Más información sobre Programming en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.