Created
July 1, 2015 17:49
-
-
Save kitwalker12/969e503d33f95d5aaf01 to your computer and use it in GitHub Desktop.
Decrypt Signed Cookie in Rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rack' | |
session = 'BAhJIgGHeyJlbWFpbCI6Im1pa2V2Y2hpekBnbWFpbC5jb20iLCJvcmRlcl9udW1iZXIiOiJSNzA3ODIzMzcyIiwiYWRkcmVzc19pZCI6NDkzNCwicGF5bWVudF9wcm9maWxlIjoiMjAzODIzNjEzIiwib3JkZXJfbnVtYmVyIjoiUjcwNzgyMzM3MiJ9BjoGRVQ=--ce30ac2176ce2206a4ad2ba30b31b377d2f19c2a' | |
Rack::Session::Cookie::Base64::Marshal.new.decode(session) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment