Skip to main content

otp-gen

A command line interface for generating one time passwords as per RFC 4226 and RFC 6238

Requirements

  • Python version 3.6.x and greater

Installation

The way to install otp-gen is to use pip

$ pip3 install otp-gen

Getting Started

You need to provision secret key, issuer, user associated with token by using config command. Default values are shown if any.

$ otp config
Secret key: JBSWY3DPEHPK3PXP
Issuer: Foo
User: Bar
Period (30 seconds):
Digits (6):
Algorithm (SHA-256):

Usage

You can request a new OTP by using get command. A progress bar appears next to the code to indicate expiry period of it. get continuously provides valid codes until killed.

$ otp get
Code = 004790, progress [*****************-----------------------]

Current configuration can be embedded in a QR code by using qrcode command.

$ otp qrcode

References

License

otp-gen is under MIT license

Metadata

Release files for otp-gen 0.1.2

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

Built distribution (wheel)

Table of built distributions (wheels) for otp-gen 0.1.2
File Interpreter ABI Platform Actions
otp_gen-0.1.2-py3-none-any.whl Python 3 none any Details for otp_gen-0.1.2-py3-none-any.whl

Release files / otp_gen-0.1.2-py3-none-any.whl

Download URL otp_gen-0.1.2-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7e2f66bd3f5dfc298e4ae5d949e26c5ee61936d81b2e7e76e80b8e215b42f71
BLAKE2b-256 checksum
How to use checksums
57e137c26c2674a4230b0babeb936ddb6d329ae13a93e206e897cdbd38c061e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for otp-gen 0.1.2

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.2 This release

1 release file 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