diff options
author | Ben Turner <7623873+ben-turner@users.noreply.github.com> | 2020-10-29 22:56:34 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-11-01 17:38:36 +0300 |
commit | 09af8c822c8e931b29427aaec72604ab03fa54c1 (patch) | |
tree | 5c18be678c51674bcb7956694e51e3993d88c1b4 /doc/api/crypto.md | |
parent | c0f6ff23d5e265ec3b7f9af79a23ad668b963918 (diff) |
doc: update crypto.createSecretKey history
Passing strings to `crypto.createSecretKey` was not added until v15.0.0
(specifically with commit dae283d). The existing documentation implies
its availability in prior versions which may cause confusion.
PR-URL: https://github.com/nodejs/node/pull/35874
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'doc/api/crypto.md')
-rw-r--r-- | doc/api/crypto.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 95a5c68baf4..e42051d4efc 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2147,8 +2147,9 @@ added: v11.6.0 changes: - version: v15.0.0 pr-url: https://github.com/nodejs/node/pull/35093 - description: The key can also be an ArrayBuffer. The encoding argument was - added. The key cannot contain more than 2 ** 32 - 1 bytes. + description: The key can also be an ArrayBuffer or string. The encoding + argument was added. The key cannot contain more than + 2 ** 32 - 1 bytes. --> * `key` {string|ArrayBuffer|Buffer|TypedArray|DataView} |