Tuesday, May 25, 2010

[Rails] Re: Validating with Encryption

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?

On May 25, 2:59 pm, Robert Walker <li...@ruby-forum.com> wrote:
> tashfeen.ekram wrote:
> > I am encrypting data mainly email addresses. I would like to use the
> > validations built into rails however I am not sure how to do that
> > given that the actual data stored in the database is an encrypted
> > version. i would like to run the validation on the decrypted version
> > of the data.
>
> Okay, so perform your encryption after validation not before.
>
> http://railsapi.com/doc/rails-v2.3.5/classes/ActiveRecord/Callbacks.h...
> --
> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate