0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc
Tobias Nießen 823d86c47c crypto: add key object API
This commit makes multiple important changes:

1. A new key object API is introduced. The KeyObject class itself is
   not exposed to users, instead, several new APIs can be used to
   construct key objects: createSecretKey, createPrivateKey and
   createPublicKey. The new API also allows to convert between
   different key formats, and even though the API itself is not
   compatible to the WebCrypto standard in any way, it makes
   interoperability much simpler.

2. Key objects can be used instead of the raw key material in all
   relevant crypto APIs.

3. The handling of asymmetric keys has been unified and greatly
   improved. Node.js now fully supports both PEM-encoded and
   DER-encoded public and private keys.

4. Conversions between buffers and strings have been moved to native
   code for sensitive data such as symmetric keys due to security
   considerations such as zeroing temporary buffers.

5. For compatibility with older versions of the crypto API, this
   change allows to specify Buffers and strings as the "passphrase"
   option when reading or writing an encoded key. Note that this
   can result in unexpected behavior if the password contains a
   null byte.

PR-URL: https://github.com/nodejs/node/pull/24234
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-12-24 14:50:16 +01:00
..
api crypto: add key object API 2018-12-24 14:50:16 +01:00
api_assets doc: adjusting formatting when printing 2018-11-16 21:13:46 -08:00
changelogs 2018-12-18, Version 11.5.0 (Current) 2018-12-18 18:36:17 +00:00
guides doc: describe root cert update process 2018-12-21 15:54:44 +01:00
.eslintrc.yaml tools: lint doc code examples in strict mode 2018-07-06 08:45:34 +03:00
first_timer_badge.png
full-white-stripe.jpg
node.1 cli: add --max-http-header-size flag 2018-12-20 09:31:52 -05:00
offboarding.md doc: add offboarding doc 2018-06-05 15:22:15 -07:00
onboarding-extras.md doc: move upstream information to onboarding doc 2018-06-01 14:01:10 +02:00
onboarding.md doc: fix author-ready conflict 2018-12-13 08:40:45 -08:00
osx_installer_logo.png
releases.md doc: add triaging section to releases.md 2018-12-04 18:37:16 -08:00
STYLE_GUIDE.md doc: add branding to style guide 2018-10-31 23:26:53 -07:00
template.html doc: remove GA tracking 2018-10-04 07:18:23 +02:00
thin-white-stripe.jpg