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

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

#249 in Authentication

Download history 31/week @ 2024-09-20 10/week @ 2024-09-27 12/week @ 2024-10-04 18/week @ 2024-10-11 10/week @ 2024-10-18 1/week @ 2024-10-25 7/week @ 2024-11-01 5/week @ 2024-11-08 18/week @ 2024-11-15 12/week @ 2024-11-22 2/week @ 2024-11-29 7/week @ 2024-12-06 1/week @ 2024-12-13 199/week @ 2024-12-20 44/week @ 2024-12-27

251 downloads per month
Used in 2 crates

MIT license

16KB
260 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–11MB
~120K SLoC