Password Hasher
My Script:
import sys
import bcrypt
import os
def Hashing(Password):
ExtraSecret = "MySecretPepper123!"
Password += ExtraSecret
print("[*] Hashing.")
FixedSalt= b'$2b$12$NKldR4Ii9msjO43XOqJm/.'
HashedPassword = bcrypt.hashpw(Password.encode(), FixedSalt)
print(f"[+] Hashed Password: \n{HashedPassword.decode()}")
if __name__ == "__main__":
if len(sys.argv) != 2:
script_name = os.path.basename(__file__)
print(f"[*] Usage: python {script_name} Password.")
sys.exit(1)
Password = sys.argv[1]
Hashing(Password)Dependencies:
Usage:
Last updated