Skip to content

Conversation

@tomash
Copy link

@tomash tomash commented Oct 22, 2025

Rails 8 has changed key derivation to use SHA-256 instead of SHA-1.
This PR adds unobtrusive derive_key_rails8 method to handle this.

@tomash
Copy link
Author

tomash commented Oct 24, 2025

Added decryption support for zlib-compressed payloads, default in Rails 8 for long strings, indicated by c: true in the JSON.

…compression and without, only rails 8 key derivation
@tomash
Copy link
Author

tomash commented Oct 24, 2025

Added encryption methods. Deterministic and non-deterministic, with compression and without, only Rails 8 key derivation.
And yes, this was AI-generated and human-werified by me. It is now a soup of pure functions 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant