Quart-Bcrypt
Quart-Bcrypt is a Quart extension that provides bcrypt hashing utilities for your application. Orginal code from Flash-Bcrypt, which can be found at https://github.com/maxcountryman/flask-bcrypt
Due to the recent increased prevelance 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 the following command:
$ pip3 install quart-bcrypt
Usage
To use the extension simply import the class wrapper and pass the Quart app object back to here. Do so like this:
from quart import Quart
from quart_bcrypt import Bcrypt
app = Quart(__name__)
bcrypt = Bcrypt(app)
Two primary hashing methods are now exposed by way of the bcrypt object. Note that you need to use decode('utf-8') on generate_password_hash().
pw_hash = bcrypt.generate_password_hash('hunter2').decode('utf-8')
bcrypt.check_password_hash(pw_hash, 'hunter2') # returns True
Documentation
View documentation at https://quart-bcrypt.readthedocs.io/en/latest/
Metadata
Release files for quart-bcrypt 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quart_bcrypt-0.0.9.tar.gz | 6.1 kB | Without provenance | Details for quart_bcrypt-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quart_bcrypt-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for quart_bcrypt-0.0.9-py3-none-any.whl |
Total release size: 13.1 kB
Release files / quart_bcrypt-0.0.9.tar.gz
| Download URL | quart_bcrypt-0.0.9.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b869a7298de6a19cc78f183ff760a79ca38067ca97d3fb8cd4760db9d60b78d9
|
|
BLAKE2b-256 checksum How to use checksums |
b8df8110d19ef99019e30a54dd610f298a77140fbfd57187b13bfd637cca3534
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.6 Linux/6.10.4-linuxkit
|
Release files / quart_bcrypt-0.0.9-py3-none-any.whl
| Download URL | quart_bcrypt-0.0.9-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f541c5eba1ca48269f4e2ba5aad8c4d0bcbb833b355164adbbf0c63dedee999b
|
|
BLAKE2b-256 checksum How to use checksums |
131abdac9d67bda4474cc9f3e1c8c6d9acaaa435e06282b9ddfe9ed4f24baea0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.6 Linux/6.10.4-linuxkit
|
Security for quart-bcrypt 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.