Hosanna UI API v2.3.0-next
    Preparing search index...
    • Encrypts the given data using device-specific encryption. Returns null for empty string

      Parameters

      • data: string

        The data to encrypt.

      • encType: DeviceCryptoEncryptType = DeviceCryptoEncryptType.Device

        The encryption type to use (default: Device).

      Returns null | string

      The encrypted data as a base64-encoded string, or null if encryption fails.