Releases: ichtrojan/gotp
Releases · ichtrojan/gotp
Orange Orbit
Changelog
Security
- Use
crypto/randinstead ofmath/randfor cryptographically secure token generation - Use constant-time comparison (
crypto/subtle.ConstantTimeCompare) to prevent timing attacks on token verification
Changed
- Format constants now follow Go naming conventions:
Alpha,AlphaNumeric,Numeric - Export Format type for better API discoverability
- Add validation for invalid format values
Deprecated
ALPHA,ALPHA_NUMERIC,NUMERICconstants are deprecated in favour ofAlpha,AlphaNumeric,Numeric
Fixed
- Remove unnecessary break statements in switch
- Remove deprecated
rand.Seedcalls (unnecessary since Go 1.20)
Reckless Racoon
Changelog
- Generate Alpha, numeric and alpha numeric token
- Validate tokens