Skip to content
shamnad-sheriefPublic

About

2fa generator CLI written in Rust.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

46 Commits

Folders and files

Repository files navigation

rfa (Rust 2-Factor Authentication)

A blazing fast, minimalist command-line tool for managing and generating 2FA (TOTP) codes.

No electron apps, no cloud syncing, no bloated UI. Just your terminal and your TOTP tokens.

rfa demo

Installation

You can install rfa directly from crates.io (the package is named r2fa):

cargo install r2fa

(Note: Once installed, the command you type in your terminal is simply rfa)

Usage

1. Add a new account

To add a secret (Base32 encoded) for a service:

rfa add <account_name> <secret>

Example: rfa add github TQVIW6UAU7WZL5FA

2. Generate a 2FA code

To get the current 6-digit code for an account:

rfa <account_name>

Example: rfa github

3. List all accounts

To see all the accounts you have saved:

rfa list

4. Remove an account

To remove an account from your vault:

rfa remove <account_name>

Example: rfa remove github

License

MIT

About

2fa generator CLI written in Rust.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages