send cursed htpasswd script
This commit is contained in:
parent
9de71d0a50
commit
327c7d4980
|
@ -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())
|
Loading…
Reference in New Issue