hmmm. what you mention does make sense. perhaps i will roll my own. however, i would like to completely understand. so, ideally the encryption should work such that all of the active record attributes work as expected. when retrieving an attribute you would get the expected object.
i dont have any experience to do such a thing. any references of of other gems doing anything remotely similar to this? On May 27, 3:22 pm, Robert Walker <[email protected]> wrote: > tashfeen.ekram wrote: > > hmmm.... ok. i was using strongbox gem. what you recommends seems like > > it would work if i wrote my own encryption. i think the encryption in > > the gem is carried out prior to validation. is there another way in > > which i can still use strongbox? > > I've not looked at the strongbox gem, but if that's the case I would > avoid using that gem. If you're going to have a gem do your > encrypting/decrypting it should be transparent to the application layer > IMHO. This would mean hooking itself in right above the database adaptor > layer so that all the higher level ActiveRecord/ActiveModel stuff just > works as normal. > > Maybe you should find a better gem, or roll your own. Encryption isn't > exactly rocket science to implement these days (maybe their > implementations are akin to rocket science, but modern abstractions > aren't). > -- > Posted viahttp://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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

