Gestion des dossiers sur VPS
This commit is contained in:
6
app/generate_admin_hash.py
Normal file
6
app/generate_admin_hash.py
Normal file
@@ -0,0 +1,6 @@
|
||||
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())
|
||||
Reference in New Issue
Block a user