hosanna-ui-docs - v0.9.0
    Preparing search index...
    • Encrypts a plaintext string using the specified format, key, and IV.

      Parameters

      • format: string

        The encryption format (e.g., AES).

      • keyHex: string

        The encryption key in hexadecimal format.

      • ivHex: string

        The initialization vector in hexadecimal format.

      • plainText: string

        The plaintext string to encrypt.

      • padding: boolean = true

        Whether to use padding (default: true).

      Returns null | string

      The encrypted string in base64 format, or null if encryption fails.