| Crates.io | another-steam-totp |
| lib.rs | another-steam-totp |
| version | 0.4.2 |
| created_at | 2023-02-02 15:14:31.189609+00 |
| updated_at | 2025-07-24 06:57:46.483598+00 |
| description | Implementation of Steam time-based one-time password. |
| homepage | |
| repository | https://github.com/juliarose/another-steam-totp |
| max_upload_size | |
| id | 774851 |
| size | 68,396 |
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.
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);
reqwest feature, or ureq feature for a synchronous version).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"] }