diff options
author | Tobias Nießen <tniessen@tnie.de> | 2018-08-02 15:26:39 +0200 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2018-08-05 20:54:15 +0200 |
commit | 28c70ac13133ed068058bbeec09dfd6770d0d151 (patch) | |
tree | 9fdb5c2dc0515ba4877d29f8b5852206850280ed /doc/api/deprecations.md | |
parent | 2519dcc2734e4536da2efc41ce140e0851140621 (diff) | |
download | android-node-v8-28c70ac13133ed068058bbeec09dfd6770d0d151.tar.gz android-node-v8-28c70ac13133ed068058bbeec09dfd6770d0d151.tar.bz2 android-node-v8-28c70ac13133ed068058bbeec09dfd6770d0d151.zip |
doc: update recommendations for createCipher
PR-URL: https://github.com/nodejs/node/pull/22087
Reviewed-By: Yihong Wang <yh.wang@ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/deprecations.md')
-rw-r--r-- | doc/api/deprecations.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index ce1d4e6e22..88101adb35 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -959,9 +959,9 @@ Type: Documentation-only Using [`crypto.createCipher()`][] and [`crypto.createDecipher()`][] should be avoided as they use a weak key derivation function (MD5 with no salt) and static initialization vectors. It is recommended to derive a key using -[`crypto.pbkdf2()`][] and to use [`crypto.createCipheriv()`][] and -[`crypto.createDecipheriv()`][] to obtain the [`Cipher`][] and [`Decipher`][] -objects respectively. +[`crypto.pbkdf2()`][] or [`crypto.scrypt()`][] and to use +[`crypto.createCipheriv()`][] and [`crypto.createDecipheriv()`][] to obtain the +[`Cipher`][] and [`Decipher`][] objects respectively. <a id="DEP0107"></a> ### DEP0107: tls.convertNPNProtocols() @@ -1035,6 +1035,7 @@ only. Use of `process.binding()` by userland code is unsupported. [`crypto.DEFAULT_ENCODING`]: crypto.html#crypto_crypto_default_encoding [`crypto.fips`]: crypto.html#crypto_crypto_fips [`crypto.pbkdf2()`]: crypto.html#crypto_crypto_pbkdf2_password_salt_iterations_keylen_digest_callback +[`crypto.scrypt()`]: crypto.html#crypto_crypto_scrypt_password_salt_keylen_options_callback [`decipher.final()`]: crypto.html#crypto_decipher_final_outputencoding [`decipher.setAuthTag()`]: crypto.html#crypto_decipher_setauthtag_buffer [`domain`]: domain.html |