htl-sign
Generate X-Trust signed human-presence HTTP headers. Standard library only.
Install
pip install htl-sign
Usage
from htl_sign import build_x_trust_header
headers = build_x_trust_header(secret="your_secret", sub="user-1", score=0.88)
# headers == {"X-Trust": "v1.eyJ...signature"}
What it does
Signs a JSON payload {sub, score, iat, exp} with HMAC-SHA256, base64url-encoded, prefixed with "v1.". Compatible with htl-verify (Python) and @htl-syterme/htl-core (TypeScript).
Links
- Spec: github.com/htl-syterme/htl-core/blob/main/SPEC.md
- Dashboard: htl-syterme.github.io/htl-core
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 htl_sign-1.0.0.tar.gz.
File metadata
- Download URL: htl_sign-1.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f6d9f61048db02c25ee94355b5f21329df47fc056ad538e11dd48a179b58342
|
|
| MD5 |
1604a78a2cf665fcbaf9af2ed0d477e6
|
|
| BLAKE2b-256 |
e7d9c83761b51946d8068b28d98ab9c726fcc541c616cbdf53c8d2af47a17f8b
|
Provenance
The following attestation bundles were made for htl_sign-1.0.0.tar.gz:
Publisher:
publish-pypi-sign.yml on htl-syterme/htl-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
htl_sign-1.0.0.tar.gz -
Subject digest:
6f6d9f61048db02c25ee94355b5f21329df47fc056ad538e11dd48a179b58342 - Sigstore transparency entry: 2886729857
- Sigstore integration time:
-
Permalink:
htl-syterme/htl-core@7c30df2d48749645de8a060d479ca4f7d004fc10 -
Branch / Tag:
refs/tags/pypi-sign-v1.0.0 - Owner: https://github.com/htl-syterme
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi-sign.yml@7c30df2d48749645de8a060d479ca4f7d004fc10 -
Trigger Event:
push
-
Statement type:
File details
Details for the file htl_sign-1.0.0-py3-none-any.whl.
File metadata
- Download URL: htl_sign-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb70ccf5321eec07d2da930ae98b64ae890187c495186a820a05ef5eda3af0bd
|
|
| MD5 |
1bb6df6c4579bb044b4f727a6078a920
|
|
| BLAKE2b-256 |
762ab673e545fbf7883c9514f051b5f32ad24ddc6850c1cc6764a96de3f89d33
|
Provenance
The following attestation bundles were made for htl_sign-1.0.0-py3-none-any.whl:
Publisher:
publish-pypi-sign.yml on htl-syterme/htl-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
htl_sign-1.0.0-py3-none-any.whl -
Subject digest:
eb70ccf5321eec07d2da930ae98b64ae890187c495186a820a05ef5eda3af0bd - Sigstore transparency entry: 2886729878
- Sigstore integration time:
-
Permalink:
htl-syterme/htl-core@7c30df2d48749645de8a060d479ca4f7d004fc10 -
Branch / Tag:
refs/tags/pypi-sign-v1.0.0 - Owner: https://github.com/htl-syterme
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi-sign.yml@7c30df2d48749645de8a060d479ca4f7d004fc10 -
Trigger Event:
push
-
Statement type: