Pure Python implementation of Argon2 v1.3.
You probably want to use the argon2_cffi or pyargon2 bindings instead.
>>> import argon2pure
>>> from binascii import hexlify
>>> hexlify(argon2pure.argon2(b'password', b'randomsalt', time_cost=1, memory_cost=16, parallelism=2))
b'0163c5fa892819055eb07b8acb94fd2ff5273e689b34107daaaaceda648f1e1b'
Run:
pip install argon2pure
- Optimize.
- Cover corner-cases in tests.