You can use this tool to encrypt and validate the password
git clone https://github.com/mr-ping/PwCrypt.git
-
Import a class named PwCrypt
from pwcrypt import PwCrypt
-
Define a text based password
text_password = 'MyPassword'
-
Create the instance of PwCrypt
pw = PwCrypt()
-
Generate the hashed password
hashed_password = pw.hash_password(text_password)
-
Then we can validate whether my password is crrect with the hashed
one which just we got.pw.validate_password(text_password, hashed_password)
from pwcrypt import PwCrypt
help(PwCrypt)