Skip to main content

Bindings for the argon2 password hasher

Project description

Python bindings for argon2 :

Installation: You can install argon2_py from this repository if you want the latest but possibly non-compiling version:

$ git clone –recursive

$ cd argon2_py

$ python build

Activate virtualenv (or use sudo):

$ python install

Or you can install the latest release from PYPI:

$ pip install argon2

>>> argon2.argon2_hash.__doc__
    This is argon2 hashing function
t - time cost, which defines the amount of computation realized and therefore the execution time, given in number of iterations
m - memory cost, which defines the memory usage, given in kibibytes
p - parallelism degree, which defines the number of parallel threads
>>> import argon2
>>> argon2.argon2_hash("password", "some_salt", )
>>> import argon2
>>> argon2.argon2_hash(password="some password", salt="some salt", t=16, m=8, p=1, buflen=128, argon_type=argon2.Argon2Type.Argon2_i)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

argon2-0.1.10.tar.gz (28.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page