Simple OTP Client
Supported algorithms: TOTP and HOTP
Important note: Secrets must be stored in plain-text.
- Python >= 3.5
pip install otpx
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
# comment
name: secret [HOTP counter]