9 lines
238 B
Python
9 lines
238 B
Python
#!/usr/bin/python3
|
|
|
|
from getpass import getpass
|
|
import bcrypt
|
|
|
|
newpass = getpass('New Password: ')
|
|
cryptpass = bcrypt.hashpw(newpass.encode(), bcrypt.gensalt())
|
|
print("UPDATE user SET pass='{}' WHERE userid=1".format(cryptpass.decode()))
|