Experimental ForgeHash-B3 v1 memory-hard password hashing (Python reference). NOT for production use.
Project description
forgeh (Python)
Experimental ForgeHash-B3 v1 reference in Python 3.10+.
Not for production password storage.
Install / test
cd langs/python/forgeh
python -m pip install -e ".[dev]"
pytest -q
Depends on the blake3 package.
Usage
from forgeh import Params, hash_password, verify_password
encoded = hash_password("secret", Params.interactive())
ok = verify_password("secret", encoded)
Low-level:
from forgeh import Params, derive_hash, derive_seed, encode
params = Params.development() # 8 MiB — tests only
salt = bytes.fromhex("000102030405060708090a0b0c0d0e0f")
hash_ = derive_hash(b"password", salt, params)
encoded = encode(1, params, salt, hash_)
| Profile | Memory | Iterations | Lanes |
|---|---|---|---|
development() |
8 MiB | 1 | 1 |
interactive() |
64 MiB | 3 | 1 |
sensitive() |
256 MiB | 4 | 2 |
Official vectors: implementers/v1/vectors/. Full suite can take several minutes; pytest -q -k vector1 is a quick smoke check.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file forgeh-1.0.0a0.tar.gz.
File metadata
- Download URL: forgeh-1.0.0a0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e9da5303f9819145ed13254fc061c39d776158e23e859110420d7240fd86a4c
|
|
| MD5 |
2e2ddf1b6d045afb3745783041d52258
|
|
| BLAKE2b-256 |
7b71c9a1eb6408fb9697f0f2f5018afa69fd9cc9ba8f869a13cc1b3b40644554
|
Provenance
The following attestation bundles were made for forgeh-1.0.0a0.tar.gz:
Publisher:
pypi-forgeh.yml on ThomasBeHappy/Forgehash
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forgeh-1.0.0a0.tar.gz -
Subject digest:
1e9da5303f9819145ed13254fc061c39d776158e23e859110420d7240fd86a4c - Sigstore transparency entry: 2205524556
- Sigstore integration time:
-
Permalink:
ThomasBeHappy/Forgehash@b273f6292f81620739740dd8ba304c0239100f84 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ThomasBeHappy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-forgeh.yml@b273f6292f81620739740dd8ba304c0239100f84 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file forgeh-1.0.0a0-py3-none-any.whl.
File metadata
- Download URL: forgeh-1.0.0a0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71cdb76beeb7649bd2d6da6ff417cd863636e9f7c4479b7ad87691a6f5eae5e3
|
|
| MD5 |
56bebd91a827ef410a41a9714cf388f7
|
|
| BLAKE2b-256 |
ce94ba13b258034d145e76463712d1eb5210a744819973546c31f7a4ac7fdff3
|
Provenance
The following attestation bundles were made for forgeh-1.0.0a0-py3-none-any.whl:
Publisher:
pypi-forgeh.yml on ThomasBeHappy/Forgehash
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
forgeh-1.0.0a0-py3-none-any.whl -
Subject digest:
71cdb76beeb7649bd2d6da6ff417cd863636e9f7c4479b7ad87691a6f5eae5e3 - Sigstore transparency entry: 2205524575
- Sigstore integration time:
-
Permalink:
ThomasBeHappy/Forgehash@b273f6292f81620739740dd8ba304c0239100f84 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ThomasBeHappy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-forgeh.yml@b273f6292f81620739740dd8ba304c0239100f84 -
Trigger Event:
workflow_dispatch
-
Statement type: