Skip to main content

A password hashing function that supports delegation

Project description

https://travis-ci.org/AntonKueltz/makwa.svg?branch=master https://badge.fury.io/py/makwa.svg

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

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


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 hashes)

Uploaded source

Built Distributions

makwa-1.0.2-py3-none-any.whl (6.7 kB view hashes)

Uploaded py3

makwa-1.0.2-py2-none-any.whl (6.7 kB view hashes)

Uploaded py2

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