Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bcrypt
- # get the system salt from config.php
- SYSTEM_SALT = 'my-salt-from-config'
- PLAINTEXT_PWD = 'my-secret-password'
- # Owncloud appends the system salt to the password before hashing
- password = PLAINTEXT_PWD + SYSTEM_SALT
- bcrypt.hashpwd(password, bcrypt.gensalt(log_rounds=8))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement