forked from nodejscn/node-api-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
158 changed files
with
647 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
Key events in the lifetime of asynchronous events have been categorized into | ||
four areas: instantiation, before/after the callback is called, and when the | ||
instance is destructed. | ||
instance is destroyed. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- YAML | ||
added: v8.8.0 | ||
--> | ||
|
||
Enables runtime checks for `async_hooks`. These can also be enabled dynamically | ||
by enabling one of the `async_hooks` hooks. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!-- YAML | ||
added: v8.8.0 | ||
--> | ||
|
||
When set to `1`, the `http2` module is suppressed. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- YAML | ||
added: v1.1.0 | ||
--> | ||
- `key` {Object | string} | ||
- `key` {string} A PEM encoded public or private key. | ||
- `passphrase` {string} An optional passphrase for the private key. | ||
- `padding` {crypto.constants} An optional padding value defined in | ||
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING` or | ||
`RSA_PKCS1_PADDING`. | ||
- `buffer` {Buffer | TypedArray | DataView} | ||
- Returns: {Buffer} A new `Buffer` with the decrypted content. | ||
|
||
Decrypts `buffer` with `key`. | ||
|
||
`key` can be an object or a string. If `key` is a string, it is treated as | ||
the key with no passphrase and will use `RSA_PKCS1_PADDING`. | ||
|
||
Because RSA public keys can be derived from private keys, a private key may | ||
be passed instead of a public key. | ||
|
This file was deleted.
Oops, something went wrong.
14 changes: 8 additions & 6 deletions
14
.../crypto_publicencrypt_publickey_buffer.md → crypto/crypto_publicencrypt_key_buffer.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
<!-- YAML | ||
added: v0.11.14 | ||
--> | ||
- `publicKey` {Object | string} | ||
- `key` {string} A PEM encoded public key. | ||
- `passphrase` {string} An optional passphrase for the public key. | ||
- `key` {Object | string} | ||
- `key` {string} A PEM encoded public or private key. | ||
- `passphrase` {string} An optional passphrase for the private key. | ||
- `padding` {crypto.constants} An optional padding value defined in | ||
`crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING`, | ||
`RSA_PKCS1_PADDING`, or `crypto.constants.RSA_PKCS1_OAEP_PADDING`. | ||
- `buffer` {Buffer | TypedArray | DataView} | ||
- Returns: {Buffer} A new `Buffer` with the encrypted content. | ||
|
||
Encrypts the content of `buffer` with `publicKey` and returns a new | ||
Encrypts the content of `buffer` with `key` and returns a new | ||
[`Buffer`][] with encrypted content. | ||
|
||
`publicKey` can be an object or a string. If `publicKey` is a string, it is | ||
treated as the key with no passphrase and will use `RSA_PKCS1_OAEP_PADDING`. | ||
`key` can be an object or a string. If `key` is a string, it is treated as | ||
the key with no passphrase and will use `RSA_PKCS1_OAEP_PADDING`. | ||
|
||
Because RSA public keys can be derived from private keys, a private key may | ||
be passed instead of a public key. | ||
|
File renamed without changes.
File renamed without changes.
Oops, something went wrong.