Skip to content

A Flask extension providing Argon2 hashing and comparison.

License

Notifications You must be signed in to change notification settings

Niecke/flask-argon2

 
 

Repository files navigation

Flask-Argon2

Flask-Argon2 is a Flask extension that provides Argon2 hashing utilities for your Flask app.

Installation

Install the extension with the following command:

$ pip install flask-argon2

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_argon2 import Argon2

app = Flask(__name__)
argon2 = Argon2(app)

Two primary methods are now exposed by way of the argon2 object. Use them like so:

pw_hash = argon2.generate_password_hash('secret_password')
argon2.check_password_hash(pw_hash, 'secret_password')

About

A Flask extension providing Argon2 hashing and comparison.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%