Python Universe
1.99K subscribers
103 photos
1 video
1 file
55 links
Everything you need to know about Python programming.

Admin: @haraisen
Feedback: @pythontg_feedbackbot
Download Telegram
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 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