Skip to content
/ RusTOTP Public

A simple Rust implementation of the Time-Based One Time Password (TOTP) and HMAC-based One-Time Password algorithms specified in RFC 6238, and RFC 4226, respectively.

License

Notifications You must be signed in to change notification settings

nulogy/RusTOTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RusTOTP

A simple Rust implementation of the Time-Based One Time Password (TOTP) and HMAC-based One-Time Password algorithms specified in RFC 6238 and RFC 4226, respectively.

Usage

Build the command-line client from the rustotp_cli crate:

$ cd rustotp_cli
$ cargo build

Generate a single OTP from a key:

$ ./target/debug/rustotp_cli 42
663792

Or, start an interactive session where a new OTP will be generated at every timestep, with a visual progress bar:

$ ./target/debug/rustotp_cli 42 --timestep=5 --interactive
495515
#####
#####
783920
#####
#####
484936
#####
####

About

A simple Rust implementation of the Time-Based One Time Password (TOTP) and HMAC-based One-Time Password algorithms specified in RFC 6238, and RFC 4226, respectively.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages