cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@gmail.com>
Subject Re: Encrypted Fields
Date Sat, 07 Feb 2009 04:02:05 GMT
We store encrypted data in the database, the key on the file system,
and the specific configuration of the key in the java code (parameters
to the key).

This requires someone gain access to all three parts in order to
decrypt the data.   We manage the encryption in the application as
this allows us to only have the decrypted values in memory for as
short a period of time as necessary.

On Thu, Feb 5, 2009 at 5:36 PM, Joe Baldwin <jfbaldwin@earthlink.net> wrote:
> What design (or pattern) is best for fields that are to be encrypted?
>
> MySQL has quite a few simple functions that can be used to encrypt data.
> However, when using Cayenne to fetch the data I have not found a simple
> solution.
>
> I have been testing using result directives and SQLTemplate, but the design
> is looking pretty messy.
>
> I guess the first question is:  can I rely on MySQL
> aes_encrypt()/aes_decrypt() while using Cayenne or will I have to go to a
> java encryption class?
>
> Thanks,
> Joe
>
>
>

Mime
View raw message