Skip to main content

Stupid Algorithm for Password Hashing

Project description

Saph for Python

Saph is the Stupid Algorithm for Password Hashing. This is the Python 3 implementation.

For more information about Saph, go to its specification.


The saph.Saph class contains the implementation. It may be used as follows:

>>> from saph import Saph
>>> hasher = Saph(memory=16384, iterations=8)
>>> hasher.hash('pepper', 'username', 'password').hex()
>>> hasher.hash('qepper', 'username', 'password').hex()
>>> hasher.hash('salt', 'pass').hex()

The .hash method accepts strings, bytes and bytearrays.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

saph-1.0.tar.gz (2.9 kB view hashes)

Uploaded source

Built Distribution

saph-1.0-py3-none-any.whl (3.7 kB view hashes)

Uploaded py3

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