On Thu, Nov 29, 2012 at 2:50 PM, Yi Tan <yi2...@gmail.com> wrote:
> Also, when I use NullPad in client, and set decipher.setAutoPadding(false)
> in node, it will auto pad 0x0 at the end of the decrypted buffer if the
> buffer doesn't match block size. That's quite anoying. Is there any way to
> get rid of the trailling 0x0s?

No.  OpenSSL by design (and, by extension, node.js) doesn't support
that, you get to pick either PKCS padding or zero padding.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to