CipherToken
CipherToken is a next-generation token engine built for developers who demand speed, security, and reliability. Currently focused on JWT, it provides a complete token lifecycle — from key generation and token minting to verification, rotation, and expiry tracking — all backed by the raw performance of Rust.
- Python 3.8+
- HMAC, RSA, ECDSA, RSA-PSS, EdDSA
- Sync and Async APIs via Tokio
Built by Cipher-Unit.
Documentation
📖 Official Documentation: https://cipherunits.github.io/CipherToken/
Installation
pip install ciphertoken
Quick Example
from ciphertoken import CipherToken
from ciphertoken.algorithms import HS256
from ciphertoken.time import minutes, days
from ciphertoken.jwt import access, refresh, rotation
token = CipherToken(
secret="your-strong-secret-key",
algorithm=HS256,
access_ttl=minutes(10),
refresh_ttl=days(7),
)
access_token = access(token, payload={"user_id": 42})
refresh_token = refresh(token, payload={"user_id": 42})
new_access, new_refresh = rotation(token, refresh_token)
print(token.verify(access_token)) # True
print(token.decode(access_token))
Contribute
Contributions are welcome! Whether it's bug fixes, new algorithms, documentation improvements, or feature suggestions — feel free to open an issue or pull request.
- Repository: https://github.com/cipherunits/CipherToken
- Issues: https://github.com/cipherunits/CipherToken/issues
Please read the code of conduct and contribution guidelines before submitting. All contributions must follow the MIT license.
License
MIT — see LICENSE for details.
Release files for ciphertoken 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ciphertoken-0.1.9.tar.gz | 502.8 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ciphertoken-0.1.9-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details |
| ciphertoken-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| ciphertoken-0.1.9-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 3.7 MB
Release files / ciphertoken-0.1.9.tar.gz
| Download URL | ciphertoken-0.1.9.tar.gz |
|---|---|
| Size | 502.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec0556b799643ba6c845115ccb290f9ee819b33b803a3814243ec7b79fb41852
|
|
BLAKE2b-256 checksum How to use checksums |
96e5d3ad5c2a22459d22612cc02fb61d6bbb01479219c2a238313de7dd0f135a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 24, 2026.
Transparency logRelease files / ciphertoken-0.1.9-cp38-abi3-win_amd64.whl
| Download URL | ciphertoken-0.1.9-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1b2c13bfd828af8ce5e7bd42c52c5b49d8984e8d5a49ccebc1a39f0cd2005c7e
|
|
BLAKE2b-256 checksum How to use checksums |
e81d8d152d42900862c0d30e8208d3a287d58eb729814009741d1e76f6964e9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 24, 2026.
Transparency logRelease files / ciphertoken-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | ciphertoken-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
419d4794150b3cfbaafc9ece06e5e3d146afd0a8315c8eb3350deab3ea66dc26
|
|
BLAKE2b-256 checksum How to use checksums |
c20f271588135818f643d52a6aee838f7c4b9e0a74e1d848a04a601ec00624fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 24, 2026.
Transparency logRelease files / ciphertoken-0.1.9-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | ciphertoken-0.1.9-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a6b6d0eb1418d56b22855dde3628646661260405fc0aafecb1af25c256db3327
|
|
BLAKE2b-256 checksum How to use checksums |
13b53d3ac8a58bbc5a2c024a5eca721f0586cfbd2b41ece4718042b9c48d6ea6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 24, 2026.
Transparency log