[Nitro] two way crypt function

George Moschovitis george.moschovitis at gmail.com
Tue Nov 13 01:55:32 EST 2007


    data = Base64.encode64(Marshal.dump(session)).chop
    data = CGI.escape("#{data}--#{generate_digest(data)}")

as you can see the diggest is generated *before* escaping, ie it is
unescapped just like when it read back.
am I missing something?

-g.



-- 
http://me.gr
http://joy.gr
http://cull.gr
http://nitroproject.org
http://phidz.com
http://joyerz.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20071113/530092e7/attachment.html 


More information about the Nitro-general mailing list