Releases: xdg-go/scram
Releases · xdg-go/scram
v1.2.0
Added
- Channel binding support for SCRAM-PLUS variants (RFC 5929, RFC 9266)
GetStoredCredentialsWithError()method that returns errors from PBKDF2
key derivation instead of panicking.- Support for Go 1.24+ stdlib
crypto/pbkdf2package, which provides
FIPS 140-3 compliance when using SHA-256 or SHA-512 hash functions.
Changed
- Minimum Go version bumped from 1.11 to 1.18.
- Migrated from
github.com/xdg-go/pbkdf2to stdlibcrypto/pbkdf2on
Go 1.24+. Legacy Go versions (<1.24) continue using the external
library via build tags for backward compatibility. - Internal error handling improved for PBKDF2 key derivation failures.
Deprecated
GetStoredCredentials()is deprecated in favor of
GetStoredCredentialsWithError(). The old method panics on PBKDF2
errors to maintain backward compatibility but will be removed in a
future major version.
Notes
- FIPS 140-3 compliance is available on Go 1.24+ when using SCRAM-SHA-256
or SCRAM-SHA-512 with appropriate salt lengths (≥16 bytes). SCRAM-SHA-1
is not FIPS-approved.