Hi, guys, Do you know how to encode and decode a string with a key, i want to encode a string and save it to the customize cookie, then get it back from this cookie and decode , such as , str = ''myString'' key = ''234d98'' encode(str, key) #maybe output SX23CVX23VXC422V234S decode(str, key) #myString The result of encode string is difference when the key is difference . thanks all. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.