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.
Release files for saph 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| saph-1.0.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| saph-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / saph-1.0.tar.gz
| Download URL | saph-1.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57465671649b91ec1b91072440d2371ad4c8bcbb2fefb503c89e7361b7b9213f
|
|
BLAKE2b-256 checksum How to use checksums |
a9769e9a8ad2e1753e5e82f4fd8293642ea62e3dc322d702d9da2094de4c8583
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / saph-1.0-py3-none-any.whl
| Download URL | saph-1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4fa08be076fe059739e77e97ddbf073ce3c399813d9af9d7572279bac3cbb62
|
|
BLAKE2b-256 checksum How to use checksums |
1cbda31a5f4eaff9d7a6f2877e70314b450a832fcbbf1400a058da418f0ef05e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|