• Encrypt a given AES key to the given exchange key

    Parameters

    • _key: CryptoKey | Uint8Array<ArrayBufferLike>

      The symmetric key

    • exchangeKey: string | CryptoKey

      The public key to encrypt to

    Returns Promise<string>

    the encrypted key, encoded as 'base64pad'