I just modified text.module to make encrypted_text.module. This module
encrypts when inserting and updating, using MySQL function AES_ENCRYPT.
It decrypts this text value on loading the field, using AES_DECRYPT function. It stores the encrypted text in BLOB columns.

Admin must specify the encryption key to use in settings.php as in

$conf = array(
      'encrypted_text_key' => 'my encryption key'
);

Works in my testing.

Please advise changes, and how to contribute this module. Thanks

CommentFileSizeAuthor
encrypted_text.module16.86 KBdado

Comments

dado’s picture

Status: Needs review » Fixed

i posted this as a new module/project
http://drupal.org/project/encrypted_text

Anonymous’s picture

Status: Fixed » Closed (fixed)