A password hashing function that supports delegation
Project description
Makwa is a password hashing function designed by Thomas Pornin. This implementation is in pure python with no 3rd party dependencies. From the Passwords14 Slides:
Makwa is a candidate to the Password Hashing Competition.
Main characteristics:
* based on modular arithmetics
* CPU-only cost (not memory-hard)
* algebraic structure enables advanced features: offline work
* factor increase, fast path, escrow
* can be delegated
* named after the Ojibwe name for the American black bear
Reference Material
Installation
pip install makwa
Usage
from makwa import hashpw, checkpw
hashed_pw = hashpw(
password,
n,
h=<hash function>,
salt=<optional salt>,
work_factor=<rounds>,
pre_hash=<True|False>,
post_hash=<length|None>
)
# returns a boolean
is_valid = checkpw(
password,
hashed_pw,
n,
h=<hash function>
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
makwa-1.0.2.tar.gz
(5.6 kB
view details)
Built Distributions
makwa-1.0.2-py3-none-any.whl
(6.7 kB
view details)
makwa-1.0.2-py2-none-any.whl
(6.7 kB
view details)
File details
Details for the file makwa-1.0.2.tar.gz
.
File metadata
- Download URL: makwa-1.0.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aa9f1215d568d284c003c0b484c148e3150612936c31e6db1bb6acbe762e602 |
|
MD5 | b8ef62f14aab38fdddfdce47eb7f7543 |
|
BLAKE2b-256 | 243bb19f938086682de60520b761d42342dab913d63e1b94f6c444cc6e9f5f1e |
File details
Details for the file makwa-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: makwa-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c7670580ebb7eaa6def162289bb79a07ef500a338271a9b863488c0130f52dd |
|
MD5 | 3cc9fa2199d7c4d1839ef0a4acbee16d |
|
BLAKE2b-256 | b2bc9b7ac41792653516af4c95446b0d7d5ec6c8901229c4309e727f21899db0 |
File details
Details for the file makwa-1.0.2-py2-none-any.whl
.
File metadata
- Download URL: makwa-1.0.2-py2-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6c39d0aa9eb5c4b084b3f2e0db6ab44318bf3678d2c329dec5477004902923f |
|
MD5 | 5b21b572278e516b64d32bafa6140112 |
|
BLAKE2b-256 | 8a6278c758889386d657cd5983c72857569a16dcc586d23e7ae641336be84686 |