Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Hiding and encrypting passwords in Python?

# User's password without echoing
import maskpass  # to hide the password
 
# masking the password, without using the mask key, the default masking is "*"
pwd = maskpass.askpass("password: " ,mask="") 

if (pwd == 'nick'):
    print('Welcome')
else:
    print("Incorrect password")
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Hiding #encrypting #passwords
ADD COMMENT
Topic
Name
1+1 =