another-steam-totp

Crates.ioanother-steam-totp
lib.rsanother-steam-totp
version0.3.3
sourcesrc
created_at2023-02-02 15:14:31.189609
updated_at2024-06-23 12:37:37.418564
descriptionImplementation of Steam time-based one-time password.
homepagehttps://github.com/juliarose/another-steam-totp
repositoryhttps://github.com/juliarose/another-steam-totp
max_upload_size
id774851
size50,214
Julia (juliarose)

documentation

README

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

Commit count: 28

cargo fmt