Skip to main content

hash-drbg

SP800-90A Hash DRBG

CI/CD CI - Test CD - Build Documentation Status
Package PyPI - Version PyPI - Python Version
Meta Hatch project linting - Ruff code style - Black License - apache-2.0

Pure python implementation of NIST SP800-90A Hash DRBG tested against NIST test vectors.

User documentation is hosted on readthedocs.

Installation

python3 -m pip install hdrbg

Test with pytest

pytest-3

Test without pytest

Tests can run without creating/installing the package:

python3 -m test.test

you can also run each test separately:

python3 -m test.test_cavp

Build the package

Build is done using hatchling. The script build allows to build for different version of python3:

./build python3.10

Create a new version

Version is managed by hatch-vcs, you just need to create a tag in github.

Using provided pipenv

See pipenv-howto.md

Launch linters

They use the configuration from pyproject.toml

pipenv run ./lint

Test

pipenv run pytest

Building the docs

cd docs
pipenv install --dev
pipenv run make html

Metadata

Release files for hdrbg 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hdrbg 1.1.1
File Size Uploaded Provenance Actions
hdrbg-1.1.1.tar.gz 1.1 MB With provenance Details for hdrbg-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hdrbg 1.1.1
File Interpreter ABI Platform Actions
hdrbg-1.1.1-py3-none-any.whl Python 3 none any Details for hdrbg-1.1.1-py3-none-any.whl

Total release size: 1.1 MB

Release files / hdrbg-1.1.1.tar.gz

Download URL hdrbg-1.1.1.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
9ab42a94b045530b2e87a6102fb775bb6c7efca39aaaf8c5868582c68c69af44
BLAKE2b-256 checksum
How to use checksums
c5d0c881a4fbf7e80f9844960078c00be14d0ad92bc2cd39bb8eb7a0cb84fbba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / hdrbg-1.1.1-py3-none-any.whl

Download URL hdrbg-1.1.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d8d40bf551e8c535614af427d3bba093b33b14db500e65dee545f2124c182ae
BLAKE2b-256 checksum
How to use checksums
673d30c15c9aee6f38facb8479f78e2b48b3059740a4a7fb81b848c989f47a26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Security for hdrbg 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hdrbg-1.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page