Hello,
I''m using crypt/rijndael to encrypt data being sent through an HTTP
POST.
Before I send my encrypted string this is what I do:
rijndael = Crypt::Rijndael.new(key)
crypt = rijndael.encrypt_string("test")
escaped_crypt = CGI::escape(crypt)
Then I send the encrypted data to my web service. On my web service, I
do this:
rijndael.decrypt_string(CGI::unescape(params[blah]))
If I do that, it doesn''t decrypt my string, it stays encrypted, I made
sure to have the same key on my web service but it still doesn''t
decrypt
the string. Is there something specific I need to check for concerning
the encoding?
Thanks
M
--
Posted via http://www.ruby-forum.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-/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.