Forked from inopinatus/verify_and_decrypt_session_cookie52.rb
Last active
October 31, 2024 06:46
-
-
Save wildjcrt/6359713fa770d277927051fdeb30ebbf to your computer and use it in GitHub Desktop.
Decrypt Rails 6.0 beta session cookies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case anyone ever needs this, pre Rails 5.2 session cookies are decoded like this:
Rails 5.2 introduced
use_authenticated_cookie_encryption
, which changed the algorithm fromaes-256-cbc
(old) toaes-256-gcm
(new). See here.