Uh oh!
There was an error while loading. Please reload this page.
crypto: allow password protected private keys with publicEncrypt - #626
crypto: allow password protected private keys with publicEncrypt#626calvinmetcalf wants to merge 1 commit into
Conversation
vkurchatkin
commented
Jan 27, 2015
it requires some documentation, doesn't it? |
calvinmetcalf
commented
Jan 27, 2015
#625 conflicts with this one as it rewrites these methods |
calvinmetcalf
commented
Jan 27, 2015
though this is allowing something slightly different |
4d9ad0f to
380e4bfComparecalvinmetcalf
commented
Jan 28, 2015
rebased with updates to the docs and I make sure that the functions that get exposed to the user aren't anonymous. |
calvinmetcalf
commented
Jan 28, 2015
and I'm geting a jshint failure one sec |
There was a problem hiding this comment.
The rename makes the diff noisier than it needs to be.
380e4bf to
058deb7CompareThere was a problem hiding this comment.
Can you add a test that tests decryption with a bad password? What if password is a buffer, an array, etc.?
indutny
commented
Jan 31, 2015
cc @iojs/crypto |
There was a problem hiding this comment.
Tiny style nit: space after comma.
bnoordhuis
commented
Jan 31, 2015
LGTM assuming tests pass. I'm still not quite clear on why you renamed the methods. |
calvinmetcalf
commented
Jan 31, 2015
Oh sorry, I renamed them because I gave a name to the inner function and it On Sat, Jan 31, 2015, 5:12 AM Ben Noordhuis notifications@github.com
|
Private keys may be used along with publicEncrypt since the private key includes the public one. This adds the ability to use encrypted private keys which previously threw an error. This commit also makes sure the user exposed functions have names.
4a671a6 to
48a71dbComparePrivate keys may be used along with publicEncrypt since the private key includes the public one. This adds the ability to use encrypted private keys which previously threw an error. This commit also makes sure the user exposed functions have names. PR-URL: #626 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
bnoordhuis
commented
Feb 2, 2015
Thanks Calvin, landed in 6561274 with minor changes (reworded/reformatted the commit log and backed out the function renaming, it made the functions show up as |
Private keys may be used along with publicEncrypt since the private key includes
the public one. This adds the ability to use encrypted private keys which
previously threw an error.