Skip to content

Cli tool for generating totp tokens written in Rust

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

MitchelAnthony/totp-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOTP CLI

Generates RFC 6238 TOTP tokens (based on HOTP tokens from RFC 4226)

How to use

cargo run -- --secret={secret} cargo run -- --auth-url="{url}"

Or build the binary cargo build --release and then ./target/release/totp --secret=={secret}

Testing using a known secret

Generate QR for testing: https://stefansundin.github.io/2fa-qr/

Or use this secret 7NY4BTFIYHYGT6OGSAP3XG4VAV7NOGA2 or this otpauth url otpauth://totp/John%20Doe?secret=7NY4BTFIYHYGT6OGSAP3XG4VAV7NOGA2&issuer=Acme%20Corp

Testing the application (dev only)

cargo fmt && cargo clippy && cargo test && cargo run -- --secret=7NY4BTFIYHYGT6OGSAP3XG4VAV7NOGA2

About

Cli tool for generating totp tokens written in Rust

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages