Skip to main content

The secure Argon2 password hashing algorithm.

Project description

PyPI Documentation Status Travis CI status AppVeyor CI Status Test Coverage IRC

Argon2 won the Password Hashing Competition and argon2_cffi is the simplest way to use it in Python and PyPy:

>>> from argon2 import PasswordHasher
>>> ph = PasswordHasher()
>>> hash = ph.hash("s3kr3tp4ssw0rd")
>>> hash  # doctest: +SKIP
'$argon2i$v=19$m=512,t=2,p=2$5VtWOO3cGWYQHEMaYGbsfQ$AcmqasQgW/wI6wAHAMk4aQ'
>>> ph.verify(hash, "s3kr3tp4ssw0rd")
True
>>> ph.verify(hash, "t0t411ywr0ng")
Traceback (most recent call last):
  ...
argon2.exceptions.VerifyMismatchError: The password does not match the supplied hash

argon2_cffi’s documentation lives at Read the Docs, the code on GitHub. It’s rigorously tested on Python 2.7, 3.4+, and PyPy.

Release Information

18.1.0 (2018-01-06)

Vendoring Argon2 @ 670229c (20171227)

Changes:

  • It is now possible to use the argon2_cffi bindings against an Argon2 library that is provided by the system.

Full changelog.

Credits & License

argon2_cffi is maintained by Hynek Schlawack and released under the MIT license.

The development is kindly supported by Variomedia AG.

A full list of contributors can be found in GitHub’s overview.

Vendored Code

Argon2

The original Argon2 repo can be found at https://github.com/P-H-C/phc-winner-argon2/.

Except for the components listed below, the Argon2 code in this repository is copyright (c) 2015 Daniel Dinu, Dmitry Khovratovich (main authors), Jean-Philippe Aumasson and Samuel Neves, and under CC0 license.

The string encoding routines in src/encoding.c are copyright (c) 2015 Thomas Pornin, and under CC0 license.

The BLAKE2 code in src/blake2/ is copyright (c) Samuel Neves, 2013-2015, and under CC0 license.

The authors of Argon2 also were very helpful to get the library to compile on ancient versions of Visual Studio for ancient versions of Python.

The documentation also quotes frequently from the Argon2 paper to avoid mistakes by rephrasing.

msinttypes

In order to be able to compile on Visual Studio 2008 and Visual Studio 2010 which are required for Python 2.7 and 3.4 respectively, we also ship two C headers with integer types. They are from the msinttypes project (auto-import on GitHub) and licensed under New BSD:

Copyright (c) 2006-2013 Alexander Chemeris

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  3. Neither the name of the product nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ‘’AS IS’’ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

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_cffi-18.1.0.tar.gz (1.8 MB view details)

Uploaded Source

Built Distributions

argon2_cffi-18.1.0-cp36-cp36m-win_amd64.whl (40.7 kB view details)

Uploaded CPython 3.6m Windows x86-64

argon2_cffi-18.1.0-cp36-cp36m-win32.whl (37.3 kB view details)

Uploaded CPython 3.6m Windows x86

argon2_cffi-18.1.0-cp36-cp36m-manylinux1_x86_64.whl (94.7 kB view details)

Uploaded CPython 3.6m

argon2_cffi-18.1.0-cp36-cp36m-manylinux1_i686.whl (93.9 kB view details)

Uploaded CPython 3.6m

argon2_cffi-18.1.0-cp36-cp36m-macosx_10_6_intel.whl (61.4 kB view details)

Uploaded CPython 3.6m macOS 10.6+ intel

argon2_cffi-18.1.0-cp35-cp35m-win_amd64.whl (40.7 kB view details)

Uploaded CPython 3.5m Windows x86-64

argon2_cffi-18.1.0-cp35-cp35m-win32.whl (37.3 kB view details)

Uploaded CPython 3.5m Windows x86

argon2_cffi-18.1.0-cp35-cp35m-manylinux1_x86_64.whl (94.7 kB view details)

Uploaded CPython 3.5m

argon2_cffi-18.1.0-cp35-cp35m-manylinux1_i686.whl (93.9 kB view details)

Uploaded CPython 3.5m

argon2_cffi-18.1.0-cp35-cp35m-macosx_10_6_intel.whl (61.4 kB view details)

Uploaded CPython 3.5m macOS 10.6+ intel

argon2_cffi-18.1.0-cp34-cp34m-win_amd64.whl (36.6 kB view details)

Uploaded CPython 3.4m Windows x86-64

argon2_cffi-18.1.0-cp34-cp34m-win32.whl (35.6 kB view details)

Uploaded CPython 3.4m Windows x86

argon2_cffi-18.1.0-cp34-cp34m-manylinux1_x86_64.whl (94.7 kB view details)

Uploaded CPython 3.4m

argon2_cffi-18.1.0-cp34-cp34m-manylinux1_i686.whl (93.9 kB view details)

Uploaded CPython 3.4m

argon2_cffi-18.1.0-cp34-cp34m-macosx_10_6_intel.whl (61.4 kB view details)

Uploaded CPython 3.4m macOS 10.6+ intel

argon2_cffi-18.1.0-cp27-cp27mu-manylinux1_x86_64.whl (98.1 kB view details)

Uploaded CPython 2.7mu

argon2_cffi-18.1.0-cp27-cp27mu-manylinux1_i686.whl (97.0 kB view details)

Uploaded CPython 2.7mu

argon2_cffi-18.1.0-cp27-cp27m-win_amd64.whl (36.8 kB view details)

Uploaded CPython 2.7m Windows x86-64

argon2_cffi-18.1.0-cp27-cp27m-win32.whl (35.3 kB view details)

Uploaded CPython 2.7m Windows x86

argon2_cffi-18.1.0-cp27-cp27m-manylinux1_x86_64.whl (98.1 kB view details)

Uploaded CPython 2.7m

argon2_cffi-18.1.0-cp27-cp27m-manylinux1_i686.whl (97.0 kB view details)

Uploaded CPython 2.7m

argon2_cffi-18.1.0-cp27-cp27m-macosx_10_6_intel.whl (61.3 kB view details)

Uploaded CPython 2.7m macOS 10.6+ intel

File details

Details for the file argon2_cffi-18.1.0.tar.gz.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0.tar.gz
Algorithm Hash digest
SHA256 7e4b75611b73f53012117ad21cdde7a17b32d1e99ff6799f22d827eb83a2a59b
MD5 88b2ce1d96323ace26f2db2838834ed9
BLAKE2b-256 e0b089620675b262fc7d5c2cfd87f5b19e612dce5924edd40495520bfa218b8a

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 05dd15949be3a7d9f65807fe58fad70526023a319747054bb89da209c4071a33
MD5 8b2268d76424af987ea7afbe780c7d93
BLAKE2b-256 a77850b433288469d6aedb2a4c7a676a6e384948381a4a46b34fc34b37625e60

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 92b3f8f93b19081d520d911f1ce5902693edeeab2181c08aa0bb4130adba51aa
MD5 4594f26350b9cbc0d9c713b96d651f82
BLAKE2b-256 686db567421721e5ca9682c1b713d7cebe8209f24ab98b56fe8fbb085377615a

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 eb3fcb55224a47b8d50830561977c64761eaad9e349af0b2241eab089af44a14
MD5 2a210bc34e3e78843bc7b0651eea2a7f
BLAKE2b-256 bf893d1aa68a307b0155960ff187f739f0c541d0b65c20731de6e3e402cad5e5

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp36-cp36m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 9befaa6d9798d9771b8176174ba82160beaf1dcdbcc63cd2dc5212f723e5e2a3
MD5 351abb590a0b6a958b4e5e18c4c29ac7
BLAKE2b-256 7e8aa49be92e819b458248387bf4a3ad9da1e072fdec217c2530f98aee526967

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 67452b1f10e873ececcea657c25d063e4bb4007e115227a53157369de5848992
MD5 63f9a937de852070e38ec442372599e3
BLAKE2b-256 260bb30f5e54a1718bea0e04095c34871449325eabe3169c7f4e9d9c3d062a1b

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 3f3b48b4802e98bb9692d72108ecad2fecea969c254c17660b70ce5730bbe4a6
MD5 005cf0f497b25a643173b655b98d38ac
BLAKE2b-256 5e06d38306ac9f6c58e1d9737d13f0f9b484c5546cfc349267e7b199f368a766

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 dc3028ec541146924e3c45973b458a7acf390b9e9ee0b64a13ac0853109a69bc
MD5 15bc8656fbdc9aab81edd3486964f0b9
BLAKE2b-256 1ec5b88123cb88ae8536c5563c5fd801b80c3db538730ee367414b3081b5b478

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d79c918cf8bf981cd23b43a1a547cd1eececb77f3607ba9fa7c0ec01bf1f05a5
MD5 76a86c6929f0a5e7686a33e5ffaa4a08
BLAKE2b-256 5a43246934d415ee350944da75e8b7ab4fedbcf5fa7a09bf75c04978f276bf30

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp35-cp35m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 10e702dbd98a2148d22de9524a605021bdc55d05304beb90ea801ba58c4a4f1e
MD5 7fdba3333db4bb1d1285408e85231501
BLAKE2b-256 0e4f5f9869cc580b6e116bc846d5191f888d6fb83b7c61142fc480c79c1b3a01

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 cba2c8c539bed691513ae1bcd5a7da632d2aa2410d8b8ebdf56026eac7e2193f
MD5 581f30f29ae110a9424f6121f10b2b0c
BLAKE2b-256 36c7cf7967f423d7a7a97f43e5e584b828d4d69b1125fa2c76d1b3b435adc2a7

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 a14e6d99787a2972d3802615911770fcba9c904401fb0dfb60bdeb250b4c5110
MD5 b1fb15aa3ea4155bbaf729d92d4c2121
BLAKE2b-256 7af217ab7466fdc99af61dacd9f0e60f137c19a215e476767ea92e1a3f8c7bb9

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 7f4b6d7c38258e76c1db293a6cf55b7e31701927fc773c5108e57578c7f8e09a
MD5 12ba7a7b4d547aa0a92ca72163b44925
BLAKE2b-256 aaf3fd8138030084f9e279dc0e094412585b232063696a2c9f62064f570c71ec

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 77a3d50e6325df79499e1220b7c38adbd30588c2f6d7c2d764fddb2d3b02e650
MD5 a9d5091b5cf181d5e858ea4fc0726f75
BLAKE2b-256 7b3d38f6b7db10d4b4a1c8b40e4c7971324ef7966a85ec484e5f463487b280ac

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp34-cp34m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 07480018d77f4c7447924e6c44c5ba1789a918413fe3efaa391a097958bbd9f6
MD5 7d136636036f06d4adf0c0a71d1e6658
BLAKE2b-256 7e9c04cbd97a7db3299c0988353cc12838ca6e600d8734e2ee9ef443567c0e5a

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 c60764fe7f62cc52a74f326e366c60f7aa33a1586c8d02107394a01ae9db6e91
MD5 dcea5122d9c2bbec3e1c0fbd01b88acd
BLAKE2b-256 00264dbbff136b025e9ddd0bd17289e5923fb18d0a3818a43e091db53103ec06

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fcd5681388d1f18e4a7ee3ff7a9b68650bc04db044b5a0a832728cbce182806d
MD5 b644ee6772e635b2b04d3b80d66646ae
BLAKE2b-256 65f93720b3ad76f8b907a2488000ea21d0319b74df6026cec4f07c7bf87878f8

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp27-cp27mu-manylinux1_i686.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 f732ca584e81491cc11e3d12e18cbd8c63e137b3f461f378426a6fdaaef47fb0
MD5 268452c6a34de04bfe829ca92a729c20
BLAKE2b-256 a760b3e75dfeed4682197c6333b865d3129825f7e5abb7d013a76e5c925403fb

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 82db759b8a495aaed51aec4762b0f44e5e7ad80256e8baf512ae70cdb3b28c50
MD5 e2480fa03fe851fcbc7f2e08f5e15993
BLAKE2b-256 b0d9ae1e5260e84839e41899d4ee1341cc5aee6deda90e20e2711c713b7850df

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 4c510232a96e991079a743a9310d3c9a014856cdbca644fccc496db2a1ff0e17
MD5 c3d3f26cb2e5bbf593ced6ef28ce4e01
BLAKE2b-256 6739ea39939b9a557b8002bd2a1066a66ce099f2fd3d2bc5ff2415842c41aa38

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5f1099b0f5ee4a7148bbd323503983aa4387ab16769ff9b5c51d26f6b0f1719e
MD5 f6de34ddafc878048a3c9941f42f0a4e
BLAKE2b-256 9a7273581ffac6e0ff4a6563a32215bdfdd3d608fbfddc83f3814d899e5c612d

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp27-cp27m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 131effd5eabbe08649bc672b5d602fd6e2772b03cfec2ddb2795f9d9babe3fba
MD5 00886a6c2c5462c8fd453a8ff6508b54
BLAKE2b-256 70f979f454a29b5f638c609afe37f993b09fe5918aafa627b7d0e467981d9d12

See more details on using hashes here.

File details

Details for the file argon2_cffi-18.1.0-cp27-cp27m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for argon2_cffi-18.1.0-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 93f631fa567dbf948f26874476c9e9afb51e0a835372bf1a319df0c5aa071bfb
MD5 e098815aefd273de839b8228bf505226
BLAKE2b-256 802fc8b10fadaeaa313dc92ae94ade378f8c49afd546ea8bab2e45191cfb3fbc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page