Getting user's password
🔸Getpass is a standard library module that provides a secure way to handle the password prompts where programs interact with the users via the terminal. Using this module, it is possible to accept passwords in Python programs and keep the passphrases safe.
The module provides two functions:
▪️The
▪️The
🔗Docs
🔗[GeeksForGeeks] getpass() and getuser() in Python
#getpass
🔸Getpass is a standard library module that provides a secure way to handle the password prompts where programs interact with the users via the terminal. Using this module, it is possible to accept passwords in Python programs and keep the passphrases safe.
The module provides two functions:
▪️The
getpass()
function is used to prompt to users using the string prompt and reads the input from the user as Password.▪️The
getuser()
function displays the login name of the user.🔗Docs
🔗[GeeksForGeeks] getpass() and getuser() in Python
#getpass