crypto: support passwords in publicEncrypt
authorCalvin Metcalf <cmetcalf@appgeo.com>
Tue, 27 Jan 2015 19:58:22 +0000 (14:58 -0500)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 2 Feb 2015 22:21:49 +0000 (23:21 +0100)
commit6561274d2377d9fd9c55fa3ce2eb2e53c14d898e
treed8e945e564c6aae892f2dcb79df3938b64840248
parente9eb2ec1c491e82dda27fe07d0eaf14ff569351b
crypto: support passwords in publicEncrypt

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.

PR-URL: https://github.com/iojs/io.js/pull/626
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
doc/api/crypto.markdown
lib/crypto.js
test/parallel/test-crypto.js