hcra/server/pwhash.py
2021-07-05 12:11:32 -07:00

7 lines
163 B
Python

import argon2
import getpass
password = getpass.getpass('Password: ')
print(f'password_argon2 {argon2.hash_password(password.encode("utf-8")).decode("utf-8")}')