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
74 changed files
with
259 additions
and
194 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# node-api-cn | ||
Node.js API 中文文档 v8.1.2 | ||
Node.js API 中文文档 v8.1.3 | ||
|
||
http://nodejs.cn/api/ |
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
6 changes: 3 additions & 3 deletions
6
crypto/cipher_final_output_encoding.md → crypto/cipher_final_outputencoding.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
4 changes: 2 additions & 2 deletions
4
crypto/cipher_setautopadding_auto_padding.md → crypto/cipher_setautopadding_autopadding.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
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
4 changes: 2 additions & 2 deletions
4
...tediffiehellman_prime_length_generator.md → ...atediffiehellman_primelength_generator.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,10 +1,10 @@ | ||
<!-- YAML | ||
added: v0.5.0 | ||
--> | ||
- `prime_length` {number} | ||
- `primeLength` {number} | ||
- `generator` {number | string | Buffer | TypedArray | DataView} Defaults to `2`. | ||
|
||
Creates a `DiffieHellman` key exchange object and generates a prime of | ||
`prime_length` bits using an optional specific numeric `generator`. | ||
`primeLength` bits using an optional specific numeric `generator`. | ||
If `generator` is not specified, the value `2` is used. | ||
|
4 changes: 2 additions & 2 deletions
4
crypto/crypto_createecdh_curve_name.md → crypto/crypto_createecdh_curvename.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
2 changes: 1 addition & 1 deletion
2
crypto/crypto_getdiffiehellman_group_name.md → crypto/crypto_getdiffiehellman_groupname.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
6 changes: 3 additions & 3 deletions
6
...ypto_privatedecrypt_private_key_buffer.md → ...rypto_privatedecrypt_privatekey_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,16 +1,16 @@ | ||
<!-- YAML | ||
added: v0.11.14 | ||
--> | ||
- `private_key` {Object | string} | ||
- `privateKey` {Object | string} | ||
- `key` {string} A PEM encoded 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} | ||
|
||
Decrypts `buffer` with `private_key`. | ||
Decrypts `buffer` with `privateKey`. | ||
|
||
`private_key` can be an object or a string. If `private_key` is a string, it is | ||
`privateKey` can be an object or a string. If `privateKey` is a string, it is | ||
treated as the key with no passphrase and will use `RSA_PKCS1_OAEP_PADDING`. | ||
|
6 changes: 3 additions & 3 deletions
6
...ypto_privateencrypt_private_key_buffer.md → ...rypto_privateencrypt_privatekey_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,16 +1,16 @@ | ||
<!-- YAML | ||
added: v1.1.0 | ||
--> | ||
- `private_key` {Object | string} | ||
- `privateKey` {Object | string} | ||
- `key` {string} A PEM encoded 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} | ||
|
||
Encrypts `buffer` with `private_key`. | ||
Encrypts `buffer` with `privateKey`. | ||
|
||
`private_key` can be an object or a string. If `private_key` is a string, it is | ||
`privateKey` can be an object or a string. If `privateKey` is a string, it is | ||
treated as the key with no passphrase and will use `RSA_PKCS1_PADDING`. | ||
|
6 changes: 3 additions & 3 deletions
6
...crypto_publicdecrypt_public_key_buffer.md → .../crypto_publicdecrypt_publickey_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
6 changes: 3 additions & 3 deletions
6
...crypto_publicencrypt_public_key_buffer.md → .../crypto_publicencrypt_publickey_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
6 changes: 3 additions & 3 deletions
6
crypto/decipher_final_output_encoding.md → crypto/decipher_final_outputencoding.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
2 changes: 1 addition & 1 deletion
2
...o/decipher_setautopadding_auto_padding.md → ...to/decipher_setautopadding_autopadding.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
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
18 changes: 0 additions & 18 deletions
18
.../diffiehellman_computesecret_other_public_key_input_encoding_output_encoding.md
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
crypto/diffiehellman_computesecret_otherpublickey_inputencoding_outputencoding.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- YAML | ||
added: v0.5.0 | ||
--> | ||
- `otherPublicKey` {string | Buffer | TypedArray | DataView} | ||
- `inputEncoding` {string} | ||
- `outputEncoding` {string} | ||
|
||
Computes the shared secret using `otherPublicKey` as the other | ||
party's public key and returns the computed shared secret. The supplied | ||
key is interpreted using the specified `inputEncoding`, and secret is | ||
encoded using specified `outputEncoding`. Encodings can be | ||
`'latin1'`, `'hex'`, or `'base64'`. If the `inputEncoding` is not | ||
provided, `otherPublicKey` is expected to be a [`Buffer`][], | ||
`TypedArray`, or `DataView`. | ||
|
||
If `outputEncoding` is given a string is returned; otherwise, a | ||
[`Buffer`][] is returned. | ||
|
11 changes: 0 additions & 11 deletions
11
crypto/diffiehellman_setprivatekey_private_key_encoding.md
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
<!-- YAML | ||
added: v0.5.0 | ||
--> | ||
- `privateKey` {string | Buffer | TypedArray | DataView} | ||
- `encoding` {string} | ||
|
||
Sets the Diffie-Hellman private key. If the `encoding` argument is provided | ||
and is either `'latin1'`, `'hex'`, or `'base64'`, `privateKey` is expected | ||
to be a string. If no `encoding` is provided, `privateKey` is expected | ||
to be a [`Buffer`][], `TypedArray`, or `DataView`. | ||
|
Oops, something went wrong.