---
title: "Flask-Bcrypt | pypx"
description: "Brcrypt hashing for Flask."
canonical_url: "https://pypx.app/packages/Flask-Bcrypt"
meta:
  "og:description": "Brcrypt hashing for Flask."
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_Flask-Bcrypt%2Cversion_1.0.1%2Csummary_Brcrypt%2Bhashing%2Bfor%2BFlask.%2Clicense_BSD%2BLicense%2Cp_Ii9wYWNrYWdlcy9GbGFzay1CY3J5cHQi%2Cs_LnoRhoBnwAgupima.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Flask-Bcrypt 1.0.1"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_Flask-Bcrypt%2Cversion_1.0.1%2Csummary_Brcrypt%2Bhashing%2Bfor%2BFlask.%2Clicense_BSD%2BLicense%2Cp_Ii9wYWNrYWdlcy9GbGFzay1CY3J5cHQi%2Cs_LnoRhoBnwAgupima.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **Flask-Bcrypt**

v1.0.1

Brcrypt hashing for Flask.

6 KBpy3-none-anyBSD License2 deps Likely Unmaintained

[** Diff **](https://pypx.app/packages/Flask-Bcrypt/diff)

`$ uv add Flask-Bcrypt`

[![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/

## **Details **

<dl>

<dt>Version</dt>
<dd>1.0.1</dd>

<dt>License</dt>
<dd>BSD License</dd>

<dt>Maintainer</dt>
<dd>Max Countryman</dd></dl>

## **Links**

- [Homepage](https://github.com/maxcountryman/flask-bcrypt)
- [View on PyPI](https://pypi.org/project/Flask-Bcrypt/)

## **Maintainers **

- Max Countryman · [maxc@me.com](mailto:maxc@me.com)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/flask-bcrypt#webpage","@type":"WebPage","description":"Brcrypt hashing for Flask.","name":"Flask-Bcrypt","url":"https://pypx.app/packages/flask-bcrypt","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/flask-bcrypt"]}]},{"@id":"https://pypx.app/packages/flask-bcrypt#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"Brcrypt hashing for Flask.","license":"BSD License","name":"Flask-Bcrypt","softwareVersion":"1.0.1"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
