Skip to content

Pure-python implementation of Argon2 – winner of the Password Hashing Competition

License

Notifications You must be signed in to change notification settings

bwesterb/argon2pure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ae69d86 · Feb 21, 2024

History

54 Commits
Jan 21, 2016
Sep 11, 2019
Dec 27, 2016
Jan 10, 2016
Jan 21, 2016
Feb 21, 2024
Dec 27, 2016
Jan 21, 2016
Sep 11, 2019
Dec 27, 2016

Repository files navigation

argon2pure

Pure Python implementation of Argon2 v1.3.

You probably want to use the argon2_cffi or pyargon2 bindings instead.

Usage

>>> import argon2pure
>>> from binascii import hexlify
>>> hexlify(argon2pure.argon2(b'password', b'randomsalt', time_cost=1, memory_cost=16, parallelism=2))
b'0163c5fa892819055eb07b8acb94fd2ff5273e689b34107daaaaceda648f1e1b'

Installation

Run:

pip install argon2pure

TODO

  • Optimize.
  • Cover corner-cases in tests.