Good point. Then one can do:

# 
http://eli.thegreenplace.net/2010/06/25/aes-encryption-of-files-in-python-with-pycrypto/
from Crypto.Cipher import AES
secret_key = '0123456789abcdef'
encryptor = AES.new(secret_key, AES.MODE_CBC)

from gluon.dal import SQLCustomType
compressed = SQLCustomType(
    type='text',
    native='blob',
    encoder=(lambda x,e=encryptor: e.encrypt(x or '')),
    decoder=(lambda x,e=encryptor: e.decrypt(x))
)



On May 4, 2:25 am, szimszon <[email protected]> wrote:
> But there could be a situation you don't own the database server...

Reply via email to