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

Release files for hdrbg 1.1.0

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.0
File Size Uploaded
hdrbg-1.1.0.tar.gz 1.1 MB Details

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / hdrbg-1.1.0.tar.gz

Download URL hdrbg-1.1.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
b30eddf37594e59542d9e2ba6ccccc227bb973c7057837e6d78e301f39dc16ed
BLAKE2b-256 checksum
How to use checksums
19c6d9bbc2b4d32e1c79346178f8b314e4ad7bba48c6ad28e536f87cde82533f
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 Aug 4, 2026.

Transparency log

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

Download URL hdrbg-1.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18a8e8d2113175180c081a4151f9c5c50cb5885af97a2a9cdbff1348406250ee
BLAKE2b-256 checksum
How to use checksums
5260e96182b29a75f4f51b0d6c9de625f9dd98daab1c83aafebf02239796c55a
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 Aug 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.2

2 release files

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