Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxcountryman/flask-bcrypt
Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application.
https://github.com/maxcountryman/flask-bcrypt
Last synced: 4 days ago
JSON representation
Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application.
- Host: GitHub
- URL: https://github.com/maxcountryman/flask-bcrypt
- Owner: maxcountryman
- License: other
- Created: 2011-06-12T21:20:23.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-11-22T19:12:39.000Z (about 1 year ago)
- Last Synced: 2025-01-03T18:06:21.574Z (11 days ago)
- Language: Python
- Homepage: http://readthedocs.org/docs/flask-bcrypt/
- Size: 274 KB
- Stars: 326
- Watchers: 13
- Forks: 64
- Open Issues: 8
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
- awesome-flask - Flask-Bcrypt - Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application (Utils)
- awesome-flask - Flask-Bcrypt - Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application (Utils)
- awesome-flask - Flask-Bcrypt - Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application (Utils)
- jimsghstars - maxcountryman/flask-bcrypt - Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application. (Python)
README
[![Tests](https://img.shields.io/github/workflow/status/maxcountryman/flask-bcrypt/Tests/master?label=tests)](https://github.com/maxcountryman/flask-bcrypt/actions)
[![Version](https://img.shields.io/pypi/v/Flask-Bcrypt.svg)](https://pypi.python.org/pypi/Flask-Bcrypt)
[![Supported Python Versions](https://img.shields.io/pypi/pyversions/Flask-Bcrypt.svg)](https://pypi.python.org/pypi/Flask-Bcrypt)# Flask-Bcrypt
Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for
your application.Due to the recent increased prevalence of powerful hardware, such as modern
GPUs, hashes have become increasingly easy to crack. A proactive solution to
this is to use a hash that was designed to be "de-optimized". Bcrypt is such
a hashing facility; unlike hashing algorithms such as MD5 and SHA1, which are
optimized for speed, bcrypt is intentionally structured to be slow.For sensitive data that must be protected, such as passwords, bcrypt is an
advisable choice.## Installation
Install the extension with one of the following commands:
$ easy_install flask-bcrypt
or alternatively if you have pip installed:
$ pip install flask-bcrypt
## Usage
To use the extension simply import the class wrapper and pass the Flask app
object back to here. Do so like this:from flask import Flask
from flask_bcrypt import Bcryptapp = Flask(__name__)
bcrypt = Bcrypt(app)Two primary hashing methods are now exposed by way of the bcrypt object. Use
them like so:pw_hash = bcrypt.generate_password_hash('hunter2')
bcrypt.check_password_hash(pw_hash, 'hunter2') # returns True## Documentation
The Sphinx-compiled documentation is available here: https://flask-bcrypt.readthedocs.io/