mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
6 lines
No EOL
171 B
Python
6 lines
No EOL
171 B
Python
import sys
|
|
from getpass import getpass
|
|
from passlib.hash import sha512_crypt
|
|
|
|
passwd = input() if not sys.stdin.isatty() else getpass()
|
|
print(sha512_crypt.encrypt(passwd)) |