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

another-steam-totp

Implementation of Steam time-based one-time password

5 unstable releases

0.3.1 Feb 26, 2024
0.3.0 Jun 27, 2023
0.2.1 Feb 18, 2023
0.2.0 Feb 2, 2023
0.1.0 Feb 2, 2023

#377 in Authentication

Download history 2/week @ 2024-02-15 147/week @ 2024-02-22 30/week @ 2024-02-29 8/week @ 2024-03-07 3/week @ 2024-03-14

189 downloads per month
Used in steam-tradeoffer-manager

MIT license

14KB
205 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.

Dependencies

~1–15MB
~174K SLoC