simple-steam-totp

Crates.iosimple-steam-totp
lib.rssimple-steam-totp
version0.1.0
sourcesrc
created_at2022-01-15 18:52:27.573277
updated_at2022-01-15 18:52:27.573277
descriptionGenerate Steam TOTP auth codes from Rust
homepage
repository
max_upload_size
id514489
size4,897
Weilbyte (Weilbyte)

documentation

README

simple-steam-totp

Generate Steam TOTP auth codes from Rust.

Your Steam TOTP shared secret is required to generate codes, here's how you can get it.

Crates.io package

Installation

Add simple-steam-totp = "0.1.0" under your [dependencies] in Cargo.toml

Usage

use simple_steam_totp::{generate};

fn main() {
    //                          ↓↓↓ Shared secret, must be a valid base64 encoded string
    match generate("V59i4SUqNiuYDrssYyMz62RSI9k=") {
        Ok(code) => println!("Code: {}", code),
        Err(e) => println!("Error: {}", e),
    }
}

License

Licensed under MIT.

Commit count: 0

cargo fmt