des.js
des.js copied to clipboard
padding/trimming to make like node crypto
I've been working with des-cbc and des-ede-cbc and I have learnt that the cipher/decipher functions in this library don't work as I expect when compared to node crypto (I'm using v10+).
There is a lot to examine to reproduce the bug, and it is potentially a browserify issue not a des.js issue.
There is a commit linked below where you can see how these differences are worked around. Scroll down to the bottom for the comments on the two .ts files.
Question is, is this des.key, node crypto, or browserify that should "be fixed"? Maybe it is none of the above??
https://github.com/dcdc-io/node-gp/commit/f8b9672f3b5b105b4710c0952b984e83026c8bf1
this is fixed now