function privateEncrypt
Jump to headingprivateEncrypt(privateKey: RsaPrivateKey | KeyLike,buffer: ArrayBufferView,): BufferEncrypts buffer with privateKey. The returned data can be decrypted using
the corresponding public key, for example using publicDecrypt.
If privateKey is not a KeyObject, this function behaves as if privateKey had been passed to createPrivateKey. If it is an
object, the padding property can be passed. Otherwise, this function uses RSA_PKCS1_PADDING.
Parameters Jump to heading
Jump to headingprivateKey: RsaPrivateKey | KeyLikeJump to headingbuffer: ArrayBufferViewReturn Type Jump to heading
Buffer