joyent/node — pull request #2014 by KiNgMaR (2011-11-04 19:37:02+00:00)
Title: Padding control for Crypto

First off: Please note that this branch is based off my other pull request (#1997). (Sorry about that?)

This is basically an implementation of what has been requested in joyent#361. It includes docs and a test suite.

Regarding the public API:
I originally was going to use an argument `bool auto_padding` to `cipher.final` and `decipher.final`, however that is not possible for `decipher.final`, for reasons explained in my commit message. So it would probably make sense to use a new method `setAutoPadding` for `cipher` too, for consistency.

Looking forward to reading your comments.