rapid-sdk
    Preparing search index...

    Function utilAesEncrypt

    • Performs AES encryption on provided text using provided key

      Parameters

      • plainText: string
      • Optionalkey: number[]

        default: DEFAULT_128

      Returns string

      cipherText

      See https://github.com/ricmoo/aes-js Possible keys lengths are: 128 bits (16 bytes), 192 bits (24 bytes) or 256 bits (32 bytes). To generate a random key: window.crypto.getRandomValues(new Uint8Array(16));