import bcrypt import sys password = "h$tg@g5aga$ra1E3$C-yHW$-BA@DF2@Grfa!3#" hashed = bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt()) print(hashed.decode('utf-8'))