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

def decrypt(text):
    'Decrypt a string using an encryption key based on the django SECRET_KEY'
    crypt = EncryptionAlgorithm.new(_get_encryption_key())
    return crypt.decrypt(text).rstrip(ENCRYPT_PAD_CHARACTER)