Hi,
I was wondering if anyone could tell me if using the mcrypt functions impede processing time to any noticeable amount (i know this depends on processor speed, the algorithm used, and the amount of data being encrypted).
What I'm thinking of doing involves encrypting information for about 15-25 columns (some short - normally VARCHAR( 80 ) for instance, and probably 5 or so that would have on average about 300 - 400 chars in a TEXT column) before inserting into a mysql database using one of the algorithms provided with mcrypt. The processor is 1 Gh. OS is redhat 9. The time it takes to encrypt is not the concern, but rather the time it takes to decrypt it when website users are browsing the information.
Which algorithm is considered pretty fast? I don't need the "ultimate" encryption, just something reasonably good and hopefully fairly fast.
Should the key chosen for these be a really long key, or is ok to use something relatively short like "php343mysql92215912". Will the key size affect the encryption/decryption speed?
Also, does anyone know if TEXT columns must be used for this purpose, or is it ok if varchar columns are used in cases where there might only be 20 -30 characters (I'd put the varchar size at 150 to since the length of the encrypted text will be bloated).
Thanks for any thoughts.