another-steam-totp

Crates.ioanother-steam-totp
lib.rsanother-steam-totp
version0.4.2
created_at2023-02-02 15:14:31.189609+00
updated_at2025-07-24 06:57:46.483598+00
descriptionImplementation of Steam time-based one-time password.
homepage
repositoryhttps://github.com/juliarose/another-steam-totp
max_upload_size
id774851
size68,396
Julia (juliarose)

documentation

README

another-steam-totp

Provides functionality relating to Steam TOTP. Based on https://github.com/DoctorMcKay/node-steam-totp. Designed to be easy-to-use while providing all necessary features.

Usage

use another_steam_totp::generate_auth_code;

let shared_secret = "000000000000000000000000000=";
let time_offset = None;
// Generates the 5-character time-based one-time password using
// your shared_secret.
let code = generate_auth_code(shared_secret, time_offset).unwrap();

assert_eq!(code.len(), 5);

Features

  • Generating 5-character TOTP codes used for authentication with Steam.
  • Generating confirmation keys and device IDs used for confirmations.
  • Getting the current time offset from Steam's servers in seconds using the Steam Web API (enable reqwest feature, or ureq feature for a synchronous version).

Installation

Add this to your Cargo.toml:

[dependencies]
another-steam-totp = "0.4"

Or with reqwest feature:

[dependencies]
another-steam-totp = { version = "0.4", features = ["reqwest"] }

License

MIT

Commit count: 31

cargo fmt