crypto: Add crypto.DEFAULT_ENCODING (defaults to 'buffer')
authorisaacs <i@izs.me>
Mon, 22 Oct 2012 17:37:20 +0000 (10:37 -0700)
committerisaacs <i@izs.me>
Tue, 23 Oct 2012 17:48:51 +0000 (10:48 -0700)
commit76b0bdf7207b275ec2e0de7c71ea333be8b38c70
tree96efafda55790026fda95c54ee7339cecce1ef8c
parent4266f5cf2ebe171b5b32ce780bed3c307d3a1a94
crypto: Add crypto.DEFAULT_ENCODING (defaults to 'buffer')

This is a flag to make it easier for users to upgrade through the
breaking crypto change, and easier for us to switch it back if it's a
problem.

Explicitly set default encoding to 'buffer' in other tests, in case it
ever changes back.
doc/api/crypto.markdown
lib/crypto.js
test/simple/test-crypto-binary-default.js [new file with mode: 0644]
test/simple/test-crypto-ecb.js
test/simple/test-crypto-padding-aes256.js
test/simple/test-crypto-padding.js
test/simple/test-crypto-random.js
test/simple/test-crypto.js