simple-steam-totp 0.1.0

Generate Steam TOTP auth codes from Rust
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 8.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 838.83 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Weilbyte

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.