Using bcrypt to encrypt a string in Python with randomly generated salt:

import bcrypt

password = b"SuperSercet34"
hashed = bcrypt.hashpw(password, bcrypt.gensalt())
print(hashed)

Built With

Share this project:

Updates