I\'m trying to encrypt a string in java, send it to my node.js server, and decrypt it. However, when I try to do this I get keep getting errors when trying to decrypt.
Java crypto's default mode for DES is ECB, which you need to specify in nodejs:
var decipher = crypto.createDecipheriv('des-ecb', key, new Buffer(0)) var txt = decipher.update(encrypt_text, 'hex', 'utf8'); txt += decipher.final('utf8') return txt