Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nevans
Last active June 12, 2023 03:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nevans/558b69f227c243f63552a6f91915424f to your computer and use it in GitHub Desktop.
Save nevans/558b69f227c243f63552a6f91915424f to your computer and use it in GitHub Desktop.
Rails 5.2.4: verifying and decrypting session cookies, to be used from rails console or in a script with the rails application loaded
@nickpearson
Copy link

Thank you. This worked for me on Rails 5.2 after changing line 39 to use aes-256-cbc instead of aes-255-cbc.

@nevans
Copy link
Author

nevans commented Jan 27, 2022

@nickpearson thanks! Hmmm... I wonder how it got in there?! Perhaps an accidental <ctrl>-a sent to vim right before uploading.

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