#totp #steam #another-steam-totp #generate-auth-code

another-steam-totp

Implementation of Steam time-based one-time password

8 releases

0.3.5 Dec 25, 2024
0.3.4 Dec 25, 2024
0.3.3 Jun 23, 2024
0.3.1 Feb 26, 2024
0.1.0 Feb 2, 2023

#409 in Authentication

Download history 243/week @ 2024-12-25 8/week @ 2025-01-08 3/week @ 2025-02-05 17/week @ 2025-02-19 46/week @ 2025-02-26 1/week @ 2025-03-05 22/week @ 2025-03-12 2/week @ 2025-03-19 17/week @ 2025-03-26 10/week @ 2025-04-02 17/week @ 2025-04-09

56 downloads per month
Used in 3 crates (2 directly)

MIT license

16KB
260 lines

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.

Enable the reqwest feature to enable the get_steam_server_time_offset function.


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.

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);

License

MIT

Dependencies

~0.8–12MB
~130K SLoC