3 ms·
I feel this Flask extension is too small to worth using over py-bcrypt at all; the example in this extension's README is no more different than: import bcr
by sirn 15y ago
I feel this Flask extension is too small to worth using over py-bcrypt at all; the example in this extension's README is no more different than:
import bcrypt
pw_hash = bcrypt.hashpw('secret', bcrypt.gensalt())
pw_hash == bcrypt.hashpw('secret', pw_hash)
I also don't understand why `generate_password_hash` returns a tuple, not just string; the salt is always in the password hash so there's no need to return the salt. My suggestions:
1. Make the extension (optionally) read `log_rounds` from `app.config`.
2. Support for anything other than py-bcrypt, e.g. cryptacular or bcryptor.
- llambda 15y agoBoth of your suggestions are great! I'll work on adding them. Thanks.