Docs
Reference
Guides
Blog
Discord
/
node:crypto
/
RSAKeyPairOptions
P
modulusLength
P
privateKeyEncoding
P
publicExponent
P
publicKeyEncoding
Search the reference...
/
Docs
Reference
Guides
Blog
Discord
/
node:crypto
/
RSAKeyPairOptions
P
modulusLength
P
privateKeyEncoding
P
publicExponent
P
publicKeyEncoding
interface
crypto.RSAKeyPairOptions
interface
RSAKeyPairOptions
<
PubF
extends
KeyFormat
,
PrivF
extends
KeyFormat
>
modulusLength
:
number
Key size in bits
privateKeyEncoding
:
BasePrivateKeyEncodingOptions
<
PrivF
>
&
{
type
:
'pkcs1'
|
'pkcs8'
}
publicExponent
?
:
number
Public exponent
publicKeyEncoding
:
{
format
:
PubF
;
type
:
'pkcs1'
|
'spki'
}