Exaphis / boilerkey-rs

Generate BoilerKey HOTPs locally.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

boilerkey-rs

A reimplementation of elnardu/local-boilerkey for fun in Rust.

Build

Run cargo build.

Usage

  1. Run the built binary.
  2. Add a new Duo Mobile BoilerKey from the BoilerKey Self-Serve page.
  3. Enter the activation code. This is the sequence of letters and numbers in the "Visit this URL with your smartphone" section.
    • When the URL is https://m-1b9bef70.duosecurity.com/activate/ABCXYZ, the activation code is ABCXYZ.
  4. Enter your BoilerKey PIN.
  5. Done! Every time you run boilerkey-rs, a new code will be generated in pin,code format.
    • Data for boilerkey-rs is stored in hotp_data.json in the working directory.

First execution:

$ target/release/boilerkey-rs
Enter activation code: ABCXYZ
Requesting activation data...
Response: <snip>
Enter BoilerKey PIN: pin
pin,123456

Subsequent executions:

$ target/release/boilerkey-rs
Reading hotp_data.json...
pin,654321

About

Generate BoilerKey HOTPs locally.


Languages

Language:Rust 96.6%Language:Shell 3.4%