#steam #totp #shared-secret #password #generate #one-time

another-steam-totp

Implementation of Steam time-based one-time password

7 releases

0.3.3 Jun 23, 2024
0.3.2 Jun 23, 2024
0.3.1 Feb 26, 2024
0.3.0 Jun 27, 2023
0.1.0 Feb 2, 2023

#285 in Authentication

Download history 21/week @ 2024-03-31 6/week @ 2024-05-19 3/week @ 2024-05-26 8/week @ 2024-06-02 3/week @ 2024-06-09 1/week @ 2024-06-16 268/week @ 2024-06-23 117/week @ 2024-07-07

386 downloads per month
Used in 2 crates

MIT license

16KB
250 lines

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


lib.rs:

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.

Dependencies

~0.6–13MB
~147K SLoC