Node.js Crypto: Adding Padding Control
·1 min
My second contribution to the Node.js crypto module has been merged. This time it’s about controlling padding.
To preserve compatiblity with legacy applications, it’s sometimes necessary to tweak cryptographic settings despite knowing that cryptographic strength is actually impaired by these settings.
Being able to turn of PKCS padding is one of these cases. Before my patch, this was impossible to do with the Node.js crypto API.
Find the PR and diff on Github: https://github.com/nodejs/node-v0.x-archive/pull/2014