Skip to content

v6.0.0

Latest

Choose a tag to compare

@constantoine constantoine released this 06 Aug 13:50
5a4851b

Breaking

This is a BIG API change. Please check MIGRATION.md for more details.

What's new

  • MSRV was bumped to 1.88.
  • Edition was bumped to 2024.
  • [no_std] support with #87 and #88.
  • We now use the builder pattern to instanciate a Totp struct.
  • Error types were unified into one Error type.

Changes

  • Types and methods were renamed to more idiomatic alternatives.
  • Functions that check the validity of a token now return the matched step to give user more tools to prevent token reuse. #63 ans #75.
  • Secret serializes to an unpadded base32 string in human-readable formats (JSON, TOML, ...) and to a raw byte string in binary formats. Deserialization accepts both, plus integer sequences from formats without a native byte type.
  • Totp now implements PartialEq and Eq, using Secret's constant-time comparison for the secret field.

Special thanks