15.10. getpass — Portable password input

Note: The custom version of getpass used in Editorial does not include the getuser function, given that iOS is essentially a single-user OS. Also, the getpass() function has no stream parameter.

The getpass() function is basically just a wrapper for the console.secure_input() function in the iOS-only console module with the benefit that you can use the same code on other platforms.

getpass.getpass([prompt])

Prompt the user for a password without echoing. The user is prompted using the string prompt, which defaults to 'Password: '.

Availability: Macintosh, Unix, Windows.