- encryptKeyTo(
params: {
key: string | Uint8Array<ArrayBufferLike> | CryptoKey;
publicKey: string | Uint8Array<ArrayBufferLike> | CryptoKey;
},
): Promise<Uint8Array> Parameters
- params: {
key: string | Uint8Array<ArrayBufferLike> | CryptoKey;
publicKey: string | Uint8Array<ArrayBufferLike> | CryptoKey;
}
Returns Promise<Uint8Array>
Methods
asString
- asString(
__namedParameters: {
key: string | Uint8Array<ArrayBufferLike> | CryptoKey;
publicKey: string | Uint8Array<ArrayBufferLike> | CryptoKey;
},
): Promise<string> Parameters
- __namedParameters: {
key: string | Uint8Array<ArrayBufferLike> | CryptoKey;
publicKey: string | Uint8Array<ArrayBufferLike> | CryptoKey;
}
Returns Promise<string>
Encrypt the given content to the given public key. This is RSA encryption, and should be used only to encrypt AES keys.