Skip to main content

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


Download files

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

Source Distribution

forgeh-1.0.0a0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

forgeh-1.0.0a0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

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

Hashes for forgeh-1.0.0a0.tar.gz
Algorithm Hash digest
SHA256 1e9da5303f9819145ed13254fc061c39d776158e23e859110420d7240fd86a4c
MD5 2e2ddf1b6d045afb3745783041d52258
BLAKE2b-256 7b71c9a1eb6408fb9697f0f2f5018afa69fd9cc9ba8f869a13cc1b3b40644554

See more details on using hashes here.

Provenance

The following attestation bundles were made for forgeh-1.0.0a0.tar.gz:

Publisher: pypi-forgeh.yml on ThomasBeHappy/Forgehash

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for forgeh-1.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 71cdb76beeb7649bd2d6da6ff417cd863636e9f7c4479b7ad87691a6f5eae5e3
MD5 56bebd91a827ef410a41a9714cf388f7
BLAKE2b-256 ce94ba13b258034d145e76463712d1eb5210a744819973546c31f7a4ac7fdff3

See more details on using hashes here.

Provenance

The following attestation bundles were made for forgeh-1.0.0a0-py3-none-any.whl:

Publisher: pypi-forgeh.yml on ThomasBeHappy/Forgehash

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page