> ## Documentation Index
> Fetch the complete documentation index at: https://encrova-docs.platform.ai71services.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Encryption

> Encrypts the given payload using asymmetric encryption with a provided certificate.

Args:
    request (EncryptionRequest): The request body containing the data to encrypt.
    x_api_key (str): The API key used to fetch product details for encryption.
    x_cert_serial_num (str): The serial number of the certificate to be used for encryption.
    cert_pem_str (str): The PEM-formatted certificate string for encryption.

Returns:
    EncryptionResponse: The response model containing the encrypted data.

Raises:
    HTTPException: 400 for invalid input, 401 for unauthorized access, 500 for server errors.

