hcra/server/pwhash.py

7 lines
163 B
Python
Raw Normal View History

2021-07-05 12:11:32 -07:00
import argon2
import getpass
password = getpass.getpass('Password: ')
print(f'password_argon2 {argon2.hash_password(password.encode("utf-8")).decode("utf-8")}')