All Projects β†’ Zebradil β†’ rustotpony

Zebradil / rustotpony

Licence: MIT license
🐴 RusTOTPony β€” CLI manager of one-time password generators aka Google Authenticator

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to rustotpony

Multiotp
multiOTP open source strong two factor authentication PHP library, OATH certified, with TOTP, HOTP, Mobile-OTP, YubiKey, SMS, QRcode provisioning, etc.
Stars: ✭ 173 (+861.11%)
Mutual labels:  otp, totp
Onetimepassword
πŸ”‘ A small library for generating TOTP and HOTP one-time passwords on iOS.
Stars: ✭ 243 (+1250%)
Mutual labels:  otp, totp
Twofactor totp
πŸ”‘ Second factor TOTP (RFC 6238) provider for Nextcloud
Stars: ✭ 203 (+1027.78%)
Mutual labels:  otp, totp
php-totp
HOTP and TOTP token generation
Stars: ✭ 33 (+83.33%)
Mutual labels:  otp, totp
2FAuth
A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes
Stars: ✭ 664 (+3588.89%)
Mutual labels:  otp, totp
Aegis
A free, secure and open source app for Android to manage your 2-step verification tokens.
Stars: ✭ 2,692 (+14855.56%)
Mutual labels:  otp, totp
Freeotpplus
Enhanced fork of FreeOTP-Android providing a feature-rich 2FA authenticator
Stars: ✭ 223 (+1138.89%)
Mutual labels:  otp, totp
Otphp
πŸ” A PHP library for generating one time passwords according to RFC 4226 (HOTP) and the RFC 6238 (TOTP)
Stars: ✭ 857 (+4661.11%)
Mutual labels:  otp, totp
ootp
OOTP (Open One-time Password) is a supports multiple programming languages. The generated one-time passwords are fully compliant with HOTP (HMAC-based One-time Password) and TOTP (Time-based One-time Password). πŸš€It's easy to use!
Stars: ✭ 17 (-5.56%)
Mutual labels:  otp, totp
otp-java
A small and easy-to-use one-time password generator library for Java according to RFC 4226 (HOTP) and RFC 6238 (TOTP).
Stars: ✭ 107 (+494.44%)
Mutual labels:  otp, totp
Otpauth
One Time Password (HOTP/TOTP) library for Node.js, Deno and browsers.
Stars: ✭ 135 (+650%)
Mutual labels:  otp, totp
multiOTPCredentialProvider
multiOTP Credential Provider is a V2 Credential Provider for Windows 7/8/8.1/10/2012(R2)/2016 with options like RDP only and UPN name support
Stars: ✭ 121 (+572.22%)
Mutual labels:  otp, totp
Totp Cli
A cli-based pass-backed TOTP app
Stars: ✭ 76 (+322.22%)
Mutual labels:  otp, totp
Android Otp Extractor
Extracts OTP tokens from rooted Android devices
Stars: ✭ 147 (+716.67%)
Mutual labels:  otp, totp
Jsotp
Javascript One-Time Password module.
Stars: ✭ 71 (+294.44%)
Mutual labels:  otp, totp
Otpclient
Highly secure and easy to use OTP client written in C/GTK that supports both TOTP and HOTP
Stars: ✭ 206 (+1044.44%)
Mutual labels:  otp, totp
Glewlwyd
Single Sign On server, OAuth2, Openid Connect, multiple factor authentication with, HOTP/TOTP, FIDO2, TLS Certificates, etc. extensible via plugins
Stars: ✭ 292 (+1522.22%)
Mutual labels:  otp, totp
Otp.net
A .NET implementation of TOTP and HOTP for things like two-factor authentication codes.
Stars: ✭ 424 (+2255.56%)
Mutual labels:  otp, totp
crotp
CrOTP - One Time Passwords for Crystal
Stars: ✭ 62 (+244.44%)
Mutual labels:  otp, totp
rx-otp
HMAC-based (HOTP) and Time-based (TOTP) One-Time Password manager. Works with Google Authenticator for Two-Factor Authentication.
Stars: ✭ 79 (+338.89%)
Mutual labels:  otp, totp

🐴 RusTOTPony

crates.io

CLI manager of time-based one-time password generators. It is a desktop alternative for Google Authenticator.

Installation

Arch Linux

Packages, available in AUR:

Other

Grab an appropriate binary from the latest release and put it in a place of your choice. If you're on *nix system, don't forget to set proper permissions: chmod +x totp.

Build manually

From crates.io

Make sure you have $HOME/.cargo/bin in your $PATH.

$ cargo install rustotpony

From source

  1. Clone this repo
  2. Run cargo install from the inside of the repo directory
  3. Keep calm and wait for compilation

Probably, you will need gcc (Linux) or clang (Mac OS) to compile dependencies.

Usage

$ totp help
🐴  RusTOTPony 0.2.3
German Lashevich <[email protected]>
CLI manager of one-time password generators aka Google Authenticator

USAGE:
    totp [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    add          Add a new generator
    dash         Show realtime dashboard with all generators
    delete       Delete generator
    eradicate    Delete all generators
    help         Prints this message or the help of the given subcommand(s)
    list         List all generators
    rename       Rename generator

Try `totp help [SUBCOMMAND]` to see help for the given subcommand

Choose your password wisely

At the very first run totp asks for a password for a new database. It's located at $HOME/.rustotpony/db.json (don't be confused by json extension, actually, it's a binary file). If you forget the password or want to change it, you have to remove $HOME/.rustotpony directory. It's not convenient, but I'm going to improve usablity and an option for changing password.

Basic scenario

  1. Retrieve a secret key from your TOTP provider (it must be encoded with base32, for example: GEZDGMZSGE2TKCQ=)

    $ # Creating a fake secret key for demo purposes
    $ echo 123321555 | base32
    GEZDGMZSGE2TKNIK
  2. Add new generator with totp add <NAME> (you will be asked for a secret and a password)

    $ # Adding a new TOTP generator
    $ totp add demo
    Enter your secret code: 
    Enter your database pass: 
    New application created: demo

    If it's not the first run, you'll be asked for password twice: for opening database and for saving it.

  3. Use totp list to check your secrets

    $ # Listing all secrets in the database
    $ totp list
    Enter your database pass: 
    +------+------------------+----------+
    | name | key              | username |
    +------+------------------+----------+
    | demo | GEZDGMZSGE2TKNIK |          |
    +------+------------------+----------+
  4. Use totp dash or just totp for realtime dashboard

    $ # Display real-time dashboard with all generators
    $ totp
    Enter your database pass: 
    Welcome to RusTOTPony realtime dashboard! Press ^C to quit.
    [=============================================               ]
    009216 demo
  5. After hitting ^C it'll cleanup the dashboard

    $ totp
    Enter your database pass: 
    I won't tell anyone about this 🀫

TODO

  • command completion
  • database password caching
  • tests
  • refactor show and show-all commands

License

Licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].