Is there anything built into either Ruby or Rails that can help encrypt and decrypt values placed in a cookie? I realize that I could store sensitive data in the server side session instead I would like to know if cookie encryption is easily doable (exploring options). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 8/6/07, homerlex <deja-x/6uVEvKFPA7/Ux101rzFaIwWpluYiW7@public.gmane.org> wrote:> > Is there anything built into either Ruby or Rails that can help > encrypt and decrypt values placed in a cookie? > > I realize that I could store sensitive data in the server side session > instead I would like to know if cookie encryption is easily doable > (exploring options).OpenSSL, which is poorly documented. Luckily there''s EZCrypto to the rescue (though I''ve never used it): http://ezcrypto.rubyforge.org/ -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Or may be use cookie based session store, which encrypts the data. On 8/6/07, Rick Olson <technoweenie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On 8/6/07, homerlex <deja-x/6uVEvKFPA7/Ux101rzFaIwWpluYiW7@public.gmane.org> wrote: > > > > Is there anything built into either Ruby or Rails that can help > > encrypt and decrypt values placed in a cookie? > > > > I realize that I could store sensitive data in the server side session > > instead I would like to know if cookie encryption is easily doable > > (exploring options). > > OpenSSL, which is poorly documented. Luckily there''s EZCrypto to the > rescue (though I''ve never used it): http://ezcrypto.rubyforge.org/ > > -- > Rick Olson > http://lighthouseapp.com > http://weblog.techno-weenie.net > http://mephistoblog.com > > > >-- Cheers! - Pratik http://m.onkey.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Where can I find some docs on how to use the Cookie Based Session Store? I''m using Rails 1.2.3 The following page makes no mention of it: http://wiki.rubyonrails.org/rails/pages/HowtoChangeSessionStore Regards On Aug 6, 11:58 am, Pratik <pratikn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Or may be use cookie based session store, which encrypts the data.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Oops. Cookie based session store is only in edge rails. On 8/7/07, homerlex <deja-x/6uVEvKFPA7/Ux101rzFaIwWpluYiW7@public.gmane.org> wrote:> > Where can I find some docs on how to use the Cookie Based Session > Store? I''m using Rails 1.2.3 The following page makes no mention of > it: http://wiki.rubyonrails.org/rails/pages/HowtoChangeSessionStore > > Regards > > On Aug 6, 11:58 am, Pratik <pratikn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Or may be use cookie based session store, which encrypts the data. > > > > >-- Cheers! - Pratik http://m.onkey.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---