function privateEncrypt
Usage
import { privateEncrypt } from "node:crypto";
Encrypts 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 ifprivateKey had been passed to createPrivateKey. If it is an
object, the padding property can be passed. Otherwise, this function usesRSA_PKCS1_PADDING.
privateKey: RsaPrivateKey | KeyLike