- encrypt(
msg: Msg,
privateKey: CryptoKey,
publicKey: string | CryptoKey,
__namedParameters: { format: "raw" },
charSize?: CharSize,
curve?: EccCurve,
opts?: Partial<{ alg: SymmAlg; iv: ArrayBuffer; length: SymmKeyLength }>,
): Promise<Uint8Array> Parameters
- msg: Msg
- privateKey: CryptoKey
- publicKey: string | CryptoKey
- __namedParameters: { format: "raw" }
Optional
charSize: CharSizeOptional
curve: EccCurveOptional
opts: Partial<{ alg: SymmAlg; iv: ArrayBuffer; length: SymmKeyLength }>
Returns Promise<Uint8Array>
- encrypt(
msg: Msg,
privateKey: CryptoKey,
publicKey: string | CryptoKey,
__namedParameters?: { format: any },
charSize?: CharSize,
curve?: EccCurve,
opts?: Partial<{ alg: SymmAlg; iv: ArrayBuffer; length: SymmKeyLength }>,
): Promise<string> Parameters
- msg: Msg
- privateKey: CryptoKey
- publicKey: string | CryptoKey
Optional
__namedParameters: { format: any }Optional
charSize: CharSizeOptional
curve: EccCurveOptional
opts: Partial<{ alg: SymmAlg; iv: ArrayBuffer; length: SymmKeyLength }>
Returns Promise<string>
Encrypt the given message.