Is it possible to decrypt previously hashed passwords using:
Bcrypt - $2b$12$
while using:
from werkzeug.security import generate_password_hash, check_password_hash
I am kind of assuming that if I can specify which hashing algorithm werkzeug.security
should use to check the password, then it would work even though they are different tools.
Perhaps I am being naive.
I encrypted the passwords like so:
application = Flask(__name__)
bc = Bcrypt(application)
password=bc.generate_password_hash(data['password_input'])
But would like to decrypt like so:
application = Flask(__name__)
from werkzeug.security import generate_password_hash, check_password_hash
if check_password_hash(user.password, password):
pass
Sample (dummy) hash:
$2b$12$98WSJfIg.YkR/Bn469IX4OlOCJx.HMWKxR8NysSynGa8QHf/4rawq
I would use the Bcrypt library but I haven't been able to get it to work with Elastic Beanstalk, due to http://stackoverflow.com/questions/41854768/flask-bcrypt-attributeerror-module-object-has-no-attribute-ffi-deployed.