https://github.com/meyt/otpx
Simple OTP client
https://github.com/meyt/otpx
Last synced: 3 months ago
JSON representation
Simple OTP client
- Host: GitHub
- URL: https://github.com/meyt/otpx
- Owner: meyt
- Created: 2022-01-30T22:00:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-31T03:27:30.000Z (over 3 years ago)
- Last Synced: 2025-02-19T16:08:27.509Z (4 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# otpx
Simple OTP Client
Supported algorithms:
[TOTP](https://tools.ietf.org/html/rfc6238)
and [HOTP](https://tools.ietf.org/html/rfc4226)> 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]
```