Skip to content

Instantly share code, notes, and snippets.

@rick
Created October 17, 2008 16:22
Show Gist options
  • Select an option

  • Save rick/17457 to your computer and use it in GitHub Desktop.

Select an option

Save rick/17457 to your computer and use it in GitHub Desktop.
~/git/mbm on master $ ruby script/console
Loading development environment (Rails 2.1.0)
>> require 'base64'
=> []
>> y = Base64.decode64('BAh7BzoOcmV0dXJuX3RvMCIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6
Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==--36a92ec1985014c08fe0beab8cd25119a04bf5f5')
=> "\004\b{\a:\016return_to0"\nflashIC:'ActionController::Flash::FlashHash{\000\006:\n@used{\000"
>> Marshal.load(y)
=> {"flash"=>{}, :return_to=>nil}
>> x = Base64.decode64('BAh7CToJdXNlcmlCOgxhY2NvdW50aQk6DnJldHVybl90bzAiCmZsYXNoSUM6
J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7BjoPbmV3X2Ns
YWltc0YGOgpAdXNlZHsGOwlG--1fc3883b9c5cd4c087b731f01c419f9ce0ce4007')
=> "\004\b{\t:\tuseriB:\faccounti\t:\016return_to0"\nflashIC:'ActionController::Flash::FlashHash{\006:\017new_claimsF\006:\n@used{\006;\tF??7?????\w\2074???W???5??\{G\036?M;"
>> Marshal.load(x)
=> {:account=>4, "flash"=>{:new_claims=>false}, :return_to=>nil, :user=>61}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment