move into root

This commit is contained in:
decentral1se
2022-03-18 12:53:20 +01:00
parent 98b5dc44bf
commit 5ef8936388
17 changed files with 24 additions and 29 deletions

12
scripts/genpw.py Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env python3
# https://prometheus.io/docs/guides/basic-auth/
# maya need to `apt install python3-bcrypt`
import getpass
import bcrypt
password = getpass.getpass("password: ")
hashed_password = bcrypt.hashpw(password.encode("utf-8"), bcrypt.gensalt())
print(hashed_password.decode())