- encrypt(
msg: Msg,
publicKey: string | CryptoKey,
opts?: { format: "base64" },
charSize?: CharSize,
hashAlg?: HashAlg,
): Promise<string> Parameters
- msg: Msg
- publicKey: string | CryptoKey
Optional
opts: { format: "base64" }Optional
charSize: CharSizeOptional
hashAlg: HashAlg
Returns Promise<string>