6 lines
195 B
Python
6 lines
195 B
Python
import bcrypt
|
|
|
|
password = input("Entre le mot de passe admin à hacher : ")
|
|
hashed = bcrypt.hashpw(password.encode(), bcrypt.gensalt(rounds=12))
|
|
print("\nHash généré :")
|
|
print(hashed.decode()) |