Because there seems to be some errors in the official documents, a demo that can run normally is implemented here.

Github : https://github.com/stwater20/flask_bcrypt

how to use

or

python bcrypt.py

encrypt — Methods => POST

http://{your_ip:port}:encrypt
data:{put_your_key}

response String -> $2b$12$D593RvtunfXMQG1aPxxvqecu5VJDqvxr.tWDLCHftaPPyMeYv.7wy

decrypt — Methods => POST

http://{your_ip:port}:encrypt
data:{put_your_key}

response String -> True or False

License

MIT