def heat_decrypt(value, encryption_key=None):
 encryption_key = get_valid_encryption_key(encryption_key)
 auth = base64.b64decode(value)
 iv = auth[:AES.block_size]
 cipher = AES.new(encryption_key, AES.MODE_CFB, iv)
 res = cipher.decrypt(auth[AES.block_size:])
 return res

def heat_decrypt ( value , encryption_key = None ) : encryption_key = get_valid_encryption_key ( encryption_key ) auth = base64 . b64decode ( value ) iv = auth [ : AES . block_size ] cipher = AES . new ( encryption_key , AES . MODE_CFB , iv ) res = cipher . decrypt ( auth [ AES . block_size : ] ) return res
decrypt data that has been encrypted using an older version of heat .