Skip to content

πŸ”’οΈ Add SASL::ScramCache for salted SCRAM keys#645

Open
nevans wants to merge 2 commits intomasterfrom
scram-cache
Open

πŸ”’οΈ Add SASL::ScramCache for salted SCRAM keys#645
nevans wants to merge 2 commits intomasterfrom
scram-cache

Conversation

@nevans
Copy link
Copy Markdown
Collaborator

@nevans nevans commented Apr 19, 2026

Adds SASL::ScramCache, a SASL::ScramAuthenticator#cache attr, and a cache keyword parameter to SASL::ScramAuthenticator#initialize.

This avoids expensive re-hashing that was done during a single authentication exchange. It can also be re-used across multiple authentication exchanges.

When the cache kwarg contains the client and server keys (or the salted password), password is optional. But authentication will fail if salt or iterations change and password hasn't been provided.

@nevans nevans force-pushed the scram-cache branch 2 times, most recently from f947db6 to 27c9dcd Compare April 19, 2026 11:23
@nevans nevans added enhancement New feature or request SASL πŸ”’ Authentication and authentication mechanisms labels Apr 24, 2026
nevans added 2 commits April 24, 2026 09:25
Adds `SASL::ScramCache`, a `SASL::ScramAuthenticator#cache` attr, and a
`cache` keyword parameter to `SASL::ScramAuthenticator#initialize`.

This avoids expensive re-hashing that was done during a single
authentication exchange, but can also be re-used across multiple
authentication exchanges.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request SASL πŸ”’ Authentication and authentication mechanisms

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant