Skip to content

Commit 6c7733f

Browse files
tniessentargos
authored andcommitted
doc: update recommendations for createCipher
PR-URL: #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>
1 parent 6ca00d7 commit 6c7733f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/deprecations.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -959,9 +959,9 @@ Type: Documentation-only
959959
Using [`crypto.createCipher()`][] and [`crypto.createDecipher()`][] should be
960960
avoided as they use a weak key derivation function (MD5 with no salt) and static
961961
initialization vectors. It is recommended to derive a key using
962-
[`crypto.pbkdf2()`][] and to use [`crypto.createCipheriv()`][] and
963-
[`crypto.createDecipheriv()`][] to obtain the [`Cipher`][] and [`Decipher`][]
964-
objects respectively.
962+
[`crypto.pbkdf2()`][] or [`crypto.scrypt()`][] and to use
963+
[`crypto.createCipheriv()`][] and [`crypto.createDecipheriv()`][] to obtain the
964+
[`Cipher`][] and [`Decipher`][] objects respectively.
965965
966966
<a id="DEP0107"></a>
967967
### DEP0107: tls.convertNPNProtocols()
@@ -1024,6 +1024,7 @@ only. Use of `process.binding()` by userland code is unsupported.
10241024
[`crypto.DEFAULT_ENCODING`]: crypto.html#crypto_crypto_default_encoding
10251025
[`crypto.fips`]: crypto.html#crypto_crypto_fips
10261026
[`crypto.pbkdf2()`]: crypto.html#crypto_crypto_pbkdf2_password_salt_iterations_keylen_digest_callback
1027+
[`crypto.scrypt()`]: crypto.html#crypto_crypto_scrypt_password_salt_keylen_options_callback
10271028
[`decipher.final()`]: crypto.html#crypto_decipher_final_outputencoding
10281029
[`decipher.setAuthTag()`]: crypto.html#crypto_decipher_setauthtag_buffer
10291030
[`domain`]: domain.html

0 commit comments

Comments
 (0)