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.
Usage
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()
'38e48e2b1d4418766568e6212e59abb961b876b2a1f7f269752ed84afe6637c0'
>>> hasher.hash('qepper', 'username', 'password').hex()
'bb4a74eb50bab2e4cd334d93ee85d84f9c91f454ef33a68a484408747f0f391a'
>>> hasher.hash('salt', 'pass').hex()
'e1530ba599f87e4e62560e908f3db833cbefa97dc6cf9100d55df57a3a9e29ad'
The .hash
method accepts strings, bytes and bytearrays.
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
saph-1.0.tar.gz
(2.9 kB
view details)
Built Distribution
saph-1.0-py3-none-any.whl
(3.7 kB
view details)
File details
Details for the file saph-1.0.tar.gz
.
File metadata
- Download URL: saph-1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57465671649b91ec1b91072440d2371ad4c8bcbb2fefb503c89e7361b7b9213f |
|
MD5 | 03fb7cdbbf2bbdb182c05c327c977932 |
|
BLAKE2b-256 | a9769e9a8ad2e1753e5e82f4fd8293642ea62e3dc322d702d9da2094de4c8583 |
File details
Details for the file saph-1.0-py3-none-any.whl
.
File metadata
- Download URL: saph-1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4fa08be076fe059739e77e97ddbf073ce3c399813d9af9d7572279bac3cbb62 |
|
MD5 | 0867201acb7cf64dbd9a744d2bcca944 |
|
BLAKE2b-256 | 1cbda31a5f4eaff9d7a6f2877e70314b450a832fcbbf1400a058da418f0ef05e |