My First Node.js Contribution
·1 min
Node.js v0.6.4 has just been released and it ships with my first commit to the runtime system, namely to the crypto module.
I was working on decrypting some data from a legacy application which used Blowfish in ECB mode. After getting strange results, I started to debug node’s internals and found that ciphers with support for different key sizes were not handled correctly.
After some very pleasant interaction with the OpenSSL manual, I was able to come up with a pull request that switched some calls to a more advanced API.
I also included the necessary unit test cases to make sure this keeps working in future node releases as well.
Find the PR and diff on Github: https://github.com/joyent/node/issues/1997