Skip to main content

Module generate

Module generate 

Source
Expand description

OTP token generation with configurable entropy.

Implements RHELBU-3536 R7: minimum 128-bit entropy using FIPS-approved RNG (OsRng). Tokens are base64url-encoded for safe embedding in HTTP headers and URIs.

Structs§

GeneratedOtp
Result of generating a new OTP.
OtpGenerator
Generates cryptographically random OTP tokens.
OtpGeneratorConfig
Configuration for the OTP generator.
OtpMetadata
Metadata attached to a generated OTP token.