otp_auth 1.0.1
otp_auth: ^1.0.1 copied to clipboard
A Dart package for generating and verifying HOTP and TOTP one-time passwords using RFC 4226 and RFC 6238.
1.0.1 #
- Fix constant-time comparison to use max length of both strings.
- Fix URI label encoding to use literal colon per Google Authenticator spec.
- Add constructor validation for
OTPUritype,HOTP/TOTPdigits range, andTOTPperiod. - Clamp
HOTP.verifywindow to avoid negative counter values.
1.0.0 #
- HOTP generation and verification (RFC 4226).
- TOTP generation and verification (RFC 6238).
- SHA-1, SHA-256, SHA-512 algorithm support.
- Base32 encoding and decoding (RFC 4648).
otpauth://URI parsing and building.- Constant-time code comparison.