Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

doc: add note about key derivation #8580

Closed
wants to merge 1 commit into from

Conversation

calvinmetcalf
Copy link

adds a note to the crypto docs passing along
the advice that openssl gives about what
key derivation function they recommend.
#8578

@@ -191,6 +191,10 @@ written data is used to compute the hash. Once the writable side of
the stream is ended, use the `read()` method to get the enciphered
contents. The legacy `update` and `final` methods are also supported.

Note: `createCipher` uses a very [weak key derevation method][], it is
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not go into emotional spectre here :) Use just weak, or even better tell people that it derives key + iv pair using just the input key string.

Also, I'd go into a bit of more detail and tell people what this derivation method actually does.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can do

adds a note to the crypto docs passing along
the advice that openssl gives about what
key derivation function they recommend.
@calvinmetcalf
Copy link
Author

ok updated

@indutny
Copy link
Member

indutny commented Oct 20, 2014

LGTM

@calvinmetcalf
Copy link
Author

@indutny are you waiting on anything from me on this?

mscdex pushed a commit to mscdex/node that referenced this pull request Dec 25, 2014
adds a note to the crypto docs passing along
the advice that openssl gives about what
key derivation function they recommend.

PR-URL: nodejs#8580
Reviewed-By: Fedor Indutny <fedor@indutny.com>
piscisaureus pushed a commit to piscisaureus/node2 that referenced this pull request Jan 10, 2015
adds a note to the crypto docs passing along
the advice that openssl gives about what
key derivation function they recommend.

PR-URL: nodejs/node-v0.x-archive#8580
Reviewed-by: Fedor Indutny <fedor@indutny.com>

Cherry-picked-from: nodejs/node-v0.x-archive@7dbc024
@jasnell jasnell added the doc label Aug 13, 2015
@jasnell
Copy link
Member

jasnell commented Aug 14, 2015

Appears to have already landed in io.js (or at least some derivation of it)

@jasnell jasnell closed this Aug 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants