I've written a Model Behavior that automatically encrypts and decrypts
the data of the specified fields set within the behavior's settings
for that model.

For instance: Profile.email
In the database, the data may read something like: $E
$e430d8d661b5cad93e125c5e188d438e5a9e3df3b385ac0e4cd20e2530bf3ee5
When viewed via the website under the baked Profile controller without
any extra work (other than the behavior, by default) it would read:
[email protected]

The problem I'm having is that I'd like it to be encrypted in the
database for security concerns. Unfortunately, it seems that a Model's
behavior is only called when referring specifically to that model.
When querying related models from their respective controller and
requesting that data in a custom query (using Cake's find), the data
is not decrypted, it remains encrypted. It seems as if the related
model's behaviors are not activated.

Is there a way to circumvent or solve this issue?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en

Reply via email to