Skip to content

Releases: ichtrojan/gotp

Orange Orbit

22 Feb 16:21

Choose a tag to compare

Changelog

Security

  • Use crypto/rand instead of math/rand for 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, NUMERIC constants are deprecated in favour of Alpha, AlphaNumeric, Numeric

Fixed

  • Remove unnecessary break statements in switch
  • Remove deprecated rand.Seed calls (unnecessary since Go 1.20)

Reckless Racoon

06 Oct 21:52
a514bcf

Choose a tag to compare

Changelog

  • Generate Alpha, numeric and alpha numeric token
  • Validate tokens