Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

roughrider.token

Utilities to generate and verify tokens (autodeprecating or not).

Currently implemented :

  • Time-based One-time Password (TOTP)

TOTP Example

Below is an example of a token based on TOTP, self-deprecating after a given number of seconds

from roughrider.token.hmac_factories import TOTTokenFactory

factory = TOTTokenFactory(secret=b'secret', TTL=180)  # 3 min TTL
token = factory.generate('my word')
assert factory.challenge(token, 'my word') is True
assert factory.challenge(token, 'my other word') is False

CHANGES

0.1 (2021-10-09)

  • Initial release.

Metadata

Release files for roughrider.token 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for roughrider.token 0.1
File Size Uploaded Provenance Actions
roughrider.token-0.1.tar.gz 5.9 kB Without provenance Details for roughrider.token-0.1.tar.gz

Release files / roughrider.token-0.1.tar.gz

Download URL roughrider.token-0.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
99a7c4c4576ef56dbd23ab58adf8e34510a6a5e37a1c571e8798d4f393546e82
BLAKE2b-256 checksum
How to use checksums
b1ca6623f7fbea37957c86f7bed0fbf947f6da17f9f233425505cd3951e0a2db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Security for roughrider.token 0.1

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
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