Expand description
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.
§Usage
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);Enums§
- Error
- Any number of errors that can occur during code generations.
- Tag
- The tag used in
generate_confirmation_key.
Functions§
- generate_
auth_ code - Generates the 5-character authentication code to login to Steam using your base64-encoded or
hex-encoded
shared_secret. - generate_
confirmation_ key - Generates a confirmation key for responding to mobile confirmations using your base64-encoded
or hex-encoded
identity_secret. - get_
device_ id - Gets the device ID for a given 64-bit
steamid. - get_
device_ id_ with_ salt - Gets the device ID for a given 64-bit
steamidwith a salt. - get_
steam_ server_ time_ offset - Gets how many seconds we are behind Steam’s servers.
- get_
steam_ server_ time_ offset_ sync - Gets how many seconds we are behind Steam’s servers.