[][src]Crate steam_guard

steam_guard

Is used to easily get steam guards authentication code. provided you have the shared secret

Usage:

extern crate steam_guard;
let secret = "123123123Ab=";
println!("Expires in:{}s", steam_guard::expires_in_sec());
println!("Login with:{:?}", steam_guard::from_secret(secret));
println!("Next login code:{:?}", steam_guard::from_secret_future(secret, 1));

Functions

expires_in_sec

returns the time in seconds in which the currently valid authentication code will expire and the next one will be valid

from_bytes
from_secret

takes steams Base64 encoded shared_secret value decodes it and generates the 5 digit code that steam requires in order to authenticate your login

from_secret_future

same as from_secret but the second argument allows you to get codes that will be valid in the future setting the second argument to 0 would be the same as calling from_secret

totp_to_steam_code