1
1
Fork 0
nixos/options/custom/scripts/bcrypt.py

8 lines
141 B
Python
Raw Normal View History

#! /usr/bin/env python
# Generate bcrypt hash
import bcrypt
print(bcrypt.hashpw(input("Password: ").encode(), bcrypt.gensalt()).decode())