Flask-Bcrypt


NameFlask-Bcrypt JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/maxcountryman/flask-bcrypt
SummaryBrcrypt hashing for Flask.
upload_time2022-04-05 03:59:52
maintainer
docs_urlhttps://pythonhosted.org/Flask-Bcrypt/
authorMax Countryman
requires_python
licenseBSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![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 Bcrypt

    app = 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/



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/maxcountryman/flask-bcrypt",
    "name": "Flask-Bcrypt",
    "maintainer": "",
    "docs_url": "https://pythonhosted.org/Flask-Bcrypt/",
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Max Countryman",
    "author_email": "maxc@me.com",
    "download_url": "https://files.pythonhosted.org/packages/0c/f4/25dccfafad391d305b63eb6031e7c1dbb757169d54d3a73292939201698e/Flask-Bcrypt-1.0.1.tar.gz",
    "platform": "any",
    "description": "[![Tests](https://img.shields.io/github/workflow/status/maxcountryman/flask-bcrypt/Tests/master?label=tests)](https://github.com/maxcountryman/flask-bcrypt/actions)\n[![Version](https://img.shields.io/pypi/v/Flask-Bcrypt.svg)](https://pypi.python.org/pypi/Flask-Bcrypt)\n[![Supported Python Versions](https://img.shields.io/pypi/pyversions/Flask-Bcrypt.svg)](https://pypi.python.org/pypi/Flask-Bcrypt)\n\n# Flask-Bcrypt\n\nFlask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for\nyour application.\n\nDue to the recent increased prevalence of powerful hardware, such as modern\nGPUs, hashes have become increasingly easy to crack. A proactive solution to\nthis is to use a hash that was designed to be \"de-optimized\". Bcrypt is such\na hashing facility; unlike hashing algorithms such as MD5 and SHA1, which are\noptimized for speed, bcrypt is intentionally structured to be slow.\n\nFor sensitive data that must be protected, such as passwords, bcrypt is an\nadvisable choice.\n\n## Installation\n\nInstall the extension with one of the following commands:\n\n    $ easy_install flask-bcrypt\n\nor alternatively if you have pip installed:\n\n    $ pip install flask-bcrypt\n\n## Usage\n\nTo use the extension simply import the class wrapper and pass the Flask app\nobject back to here. Do so like this:\n\n    from flask import Flask\n    from flask_bcrypt import Bcrypt\n\n    app = Flask(__name__)\n    bcrypt = Bcrypt(app)\n\nTwo primary hashing methods are now exposed by way of the bcrypt object. Use\nthem like so:\n\n    pw_hash = bcrypt.generate_password_hash('hunter2')\n    bcrypt.check_password_hash(pw_hash, 'hunter2') # returns True\n\n## Documentation\n\nThe Sphinx-compiled documentation is available here: https://flask-bcrypt.readthedocs.io/\n\n\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Brcrypt hashing for Flask.",
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/maxcountryman/flask-bcrypt"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8b72af9a3a3dbcf7463223c089984b8dd4f1547593819e24d57d9dc5873e04fe",
                "md5": "f62c8df17c974f7e0651c578601adef7",
                "sha256": "062fd991dc9118d05ac0583675507b9fe4670e44416c97e0e6819d03d01f808a"
            },
            "downloads": -1,
            "filename": "Flask_Bcrypt-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f62c8df17c974f7e0651c578601adef7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6050,
            "upload_time": "2022-04-05T03:59:51",
            "upload_time_iso_8601": "2022-04-05T03:59:51.589428Z",
            "url": "https://files.pythonhosted.org/packages/8b/72/af9a3a3dbcf7463223c089984b8dd4f1547593819e24d57d9dc5873e04fe/Flask_Bcrypt-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0cf425dccfafad391d305b63eb6031e7c1dbb757169d54d3a73292939201698e",
                "md5": "004c3ffe5259395aff2c710ddb32d7b2",
                "sha256": "f07b66b811417ea64eb188ae6455b0b708a793d966e1a80ceec4a23bc42a4369"
            },
            "downloads": -1,
            "filename": "Flask-Bcrypt-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "004c3ffe5259395aff2c710ddb32d7b2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5996,
            "upload_time": "2022-04-05T03:59:52",
            "upload_time_iso_8601": "2022-04-05T03:59:52.682574Z",
            "url": "https://files.pythonhosted.org/packages/0c/f4/25dccfafad391d305b63eb6031e7c1dbb757169d54d3a73292939201698e/Flask-Bcrypt-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-04-05 03:59:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "maxcountryman",
    "github_project": "flask-bcrypt",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "flask-bcrypt"
}
        
Elapsed time: 0.31447s