Skip to main content

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]

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

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file otpx-1.0.2.tar.gz.

File metadata

  • Download URL: otpx-1.0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for otpx-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c4cba122a7014719093a33f3f70ca19eeb328ce98ad173e3dcda337de32d899b
MD5 c1c6d1964b864387b2820adfcab64a0d
BLAKE2b-256 4d80147d6850cd7ec1232865b47adfce12100a4cba6e8b6fd9b553e80585027b

See more details on using hashes here.

File details

Details for the file otpx-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: otpx-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for otpx-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1fc3ddf62c5d81591a62d0ce3d66a9fc7f088faee845bcbc950e5469f9a790fc
MD5 46bdba8c0cb54bf904b46923ede0ff8b
BLAKE2b-256 b70c6c46e3326bed51baf51eb4de8c1f16127f3927ed1c1c2ccfd856f31be7c4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

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