Skip to main content

Simple OTP Client

Project description

otpx

Simple OTP Client

Supported algorithms: TOTP and HOTP

Important note: Secrets must be stored in plain-text.

Requirements

  • Python >= 3.5

Install

pip install otpx

Usage

Create keys file like this in home path ~/.otpx/keys:

instagram1: JBSWY3DPEHPK3PXP
instagram2: 3DPEHP3PXPJBSWYK
github: DPEHPKY3PXP3JBSW
myhotp: KJBSWDY3PXP3PEHP 1

Get all codes:

otpx

Get one code:

otpx instagram1

Copy to clipboard:

otp copy instagram2

Increase HOTP counter and get the code

otp inc myhotp

keys file format

# comment
name: secret [HOTP counter]

Project details


Download files

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

Source Distribution

otpx-1.0.2.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

otpx-1.0.2-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

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