Metadata-Version: 2.1
Name: otpx
Version: 1.0.2
Summary: Simple OTP Client
Home-page: http://github.com/meyt/otpx
Author: MeyT
License: MIT
Keywords: cli 2fa otp totp hotp
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Security
Classifier: Topic :: Utilities
Classifier: Environment :: Console :: Curses
Classifier: Environment :: Console
Description-Content-Type: text/markdown
Requires-Dist: pyotp (>=2.6.0)
Requires-Dist: pyperclip (>=1.8.2)

# 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]
```


