An open API service indexing awesome lists of open source software.

https://github.com/jonnung/gtp

Simple ⏱Time-based 🔑OTP Client
https://github.com/jonnung/gtp

go golang gtp otp-client otp-secret

Last synced: 8 months ago
JSON representation

Simple ⏱Time-based 🔑OTP Client

Awesome Lists containing this project

README

          

GTP - Go one-Time Password

Simple ⏱Time-based 🔑OTP Client

![gonewbie](https://img.shields.io/badge/golang-newbie-blue) ![GTP Release](https://github.com/jonnung/gtp/workflows/GTP%20Release/badge.svg?branch=master) ![Github Action](https://img.shields.io/github/workflow/status/jonnung/gtp/GTP%20Release?label=Github%20Action) ![License](https://img.shields.io/github/license/jonnung/gtp) ![first opensource](https://img.shields.io/badge/%F0%9F%8E%89first%20opensource-congratulation-ff69b4)

## What is GTP?
GTP is a time-based OTP [CLI](https://en.wikipedia.org/wiki/Command-line_interface) client.
time-based OTP is an algorithm implementation defined in the [RFC 6238](https://tools.ietf.org/html/rfc6238).
If you received a secret text from [multi-factor authentication](http://en.wikipedia.org/wiki/Multi-factor_authentication) system, GTP is store the secret text on your computer($HOME directory).
The secret text is secure data, but GTP expects your computer to be used only you.

![Alt text](./gtp_usage.svg)

## Installation
```
$ go get github.com/jonnung/gtp
```

or download compiled binary file for multiple platform. See [release page](https://github.com/jonnung/gtp/releases).

## Usage
```
$ gtp [{number}|list|add|remove|clear]
```

- `{number}`: Show time based one-time password by specified secret
- `list`: All registered OTP secrets
- `add`: Add new OTP secret
- `remove`: Remove the specified secret
- `clear`: Clear all secrets