I wonder if you are mixing up public key and private key concepts. A sender uses a public key to encrypt data, and a receiver uses a private key to decrypt data.
Please check the following instruction. http://stuff-things.net/2007/06/11/encrypting-sensitive-data-with-ruby-on-rails/ Hope this will help. Glen -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.