def METHOD_NAME(self, cipher_data, encrypted_data):
    cipher = AES.new(
        bytes(cipher_data["key"], "utf-8"),
        self.encryption_algorithm[cipher_data["algorithm"]],
        bytes(cipher_data["iv"], "utf-8"),
    )
    return unpad(cipher.decrypt(binascii.unhexlify(encrypted_data)), 16, "pkcs7")