Skip to main content

serp-hmac

Drop-in replacement for Python's hmac module for Serpentine.

from serp_hmac import new, compare_digest

mac = new(b"secret", b"payload", "sha256")
print(mac.hexdigest())
print(compare_digest(mac.digest(), mac.digest()))

Native builds compute HMAC and the constant-time comparison in the Serpentine runtime; under CPython the same file delegates to the stdlib hmac.

Caps: digestmod is a name string ("sha256", "sha1", "md5"); compare_digest takes bytes.

Metadata

Release files for serp-hmac 0.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 serp-hmac 0.1.0
File Size Uploaded Provenance Actions
serp_hmac-0.1.0.tar.gz 3.3 kB Without provenance Details for serp_hmac-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for serp-hmac 0.1.0
File Interpreter ABI Platform Actions
serp_hmac-0.1.0-py3-none-any.whl Python 3 none any Details for serp_hmac-0.1.0-py3-none-any.whl

Total release size: 6.0 kB

Release files / serp_hmac-0.1.0.tar.gz

Download URL serp_hmac-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ae103f63351bbac9332adff55eb432efc73d99def88ba25bf3d5b3fdf8174ece
BLAKE2b-256 checksum
How to use checksums
92811c4751b602e883594ad342c18d7fa1566ceea56b363ad576d38bd5f625dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / serp_hmac-0.1.0-py3-none-any.whl

Download URL serp_hmac-0.1.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fce6c12a85916924f4117de2872c55e9f7dcb0e3c7d89bd4ccba32bc4b0fa451
BLAKE2b-256 checksum
How to use checksums
2f73e4914631aa2e3aaff4bd3d6dddfacff9d6e94adb1ef5f1120ec0310142c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for serp-hmac 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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