Encrypt a string using an encryption key based on the django SECRET_KEY

def encrypt(text):
    'Encrypt a string using an encryption key based on the django SECRET_KEY'
    crypt = EncryptionAlgorithm.new(_get_encryption_key())
    return crypt.encrypt(to_blocksize(text))