Crates.io | another-steam-totp |
lib.rs | another-steam-totp |
version | 0.3.3 |
source | src |
created_at | 2023-02-02 15:14:31.189609 |
updated_at | 2024-06-23 12:37:37.418564 |
description | Implementation of Steam time-based one-time password. |
homepage | https://github.com/juliarose/another-steam-totp |
repository | https://github.com/juliarose/another-steam-totp |
max_upload_size | |
id | 774851 |
size | 50,214 |
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);