Skip to main content

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.

Please read the code of conduct and contribution guidelines before submitting. All contributions must follow the MIT license.


License

MIT — see LICENSE for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ciphertoken-0.1.9.tar.gz (502.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ciphertoken-0.1.9-cp38-abi3-win_amd64.whl (1.0 MB view details)

Uploaded CPython 3.8+Windows x86-64

ciphertoken-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

ciphertoken-0.1.9-cp38-abi3-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

Details for the file ciphertoken-0.1.9.tar.gz.

File metadata

  • Download URL: ciphertoken-0.1.9.tar.gz
  • Upload date:
  • Size: 502.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ciphertoken-0.1.9.tar.gz
Algorithm Hash digest
SHA256 ec0556b799643ba6c845115ccb290f9ee819b33b803a3814243ec7b79fb41852
MD5 ca12092773be27e6bb315e30ed9ea186
BLAKE2b-256 96e5d3ad5c2a22459d22612cc02fb61d6bbb01479219c2a238313de7dd0f135a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ciphertoken-0.1.9.tar.gz:

Publisher: build.yml on cipherunits/CipherToken

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ciphertoken-0.1.9-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: ciphertoken-0.1.9-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ciphertoken-0.1.9-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1b2c13bfd828af8ce5e7bd42c52c5b49d8984e8d5a49ccebc1a39f0cd2005c7e
MD5 a721b37d26e234c921cfd188f12cb64f
BLAKE2b-256 e81d8d152d42900862c0d30e8208d3a287d58eb729814009741d1e76f6964e9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ciphertoken-0.1.9-cp38-abi3-win_amd64.whl:

Publisher: build.yml on cipherunits/CipherToken

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ciphertoken-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ciphertoken-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 419d4794150b3cfbaafc9ece06e5e3d146afd0a8315c8eb3350deab3ea66dc26
MD5 64d36d925565bd7f62e3419d6fcf0f10
BLAKE2b-256 c20f271588135818f643d52a6aee838f7c4b9e0a74e1d848a04a601ec00624fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for ciphertoken-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build.yml on cipherunits/CipherToken

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ciphertoken-0.1.9-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ciphertoken-0.1.9-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6b6d0eb1418d56b22855dde3628646661260405fc0aafecb1af25c256db3327
MD5 c4278fca85a509be5313c3d43b9edeec
BLAKE2b-256 13b53d3ac8a58bbc5a2c024a5eca721f0586cfbd2b41ece4718042b9c48d6ea6

See more details on using hashes here.

Provenance

The following attestation bundles were made for ciphertoken-0.1.9-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: build.yml on cipherunits/CipherToken

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page