{"id":71864,"library":"oath","title":"OATH","description":"An implementation of OATH algorithms in Rust. Includes TOTP, HOTP, and OCRA.","status":"active","version":"0.10.2","language":"rust","source_language":null,"source_url":"https://github.com/avacariu/rust-oath","tags":["otp","totp","hotp","authentication","security"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\noath = \"0.10.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add oath","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"totp","correct":"use oath::totp;"}],"quickstart":{"code":"use oath::totp;\n\nfn main() {\n    let secret = b\"12345678901234567890\";\n    let code = totp(secret, 30, 6);\n    println!(\"TOTP: {}\", code);\n}","lang":"rust","description":"Generates a time-based one-time password (TOTP)."},"warnings":[],"env_vars":null,"search_vec":"'algorithm':6 'authent':17 'hotp':11,16 'implement':3 'includ':9 'oath':1,5 'ocra':13 'otp':14 'rust':8 'secur':18 'totp':10,15","created_at":"2026-06-17T18:32:19.088679+00:00","updated_at":"2026-06-17T18:32:19.088679+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/avacariu/rust-oath","github":"https://github.com/avacariu/rust-oath","docs":"https://docs.rs/oath/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth","crypto"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}