The content to encrypt and public key to encrypt to
Optional
aesKey: string | Uint8Array<ArrayBufferLike> | CryptoKeyAn optional AES key to encrypt to the given public key
The encrypted AES key, concattenated with the encrypted content.
Encrypt the given AES key to the given public key. Return the encrypted AES key concattenated with the cipher text.
The content to encrypt and key to encrypt to.
Optional
aesKey: string | Uint8Array<ArrayBufferLike> | CryptoKeyOptional -- the AES key. One will be created if not passed in.
The encrypted AES key concattenated with the cipher text.
Encrypt the given message to the given public key. If an AES key is not provided, one will be created. Use an AES key to encrypt the given content, then we encrypt the AES key to the given public key.