node.js
var crypto = require("crypto"); /* 加密 */ function cipher_ADE_128_CBC(content, passwd) { var cip = crypto.createCipher("aes-128-cbc", passwd), update = cip.update(content); return Buffer.concat([update, cip.final()]).toString("hex") } /* 解密 */ function decipher_ADE_128_CBC(content, passwd) { var cip = crypto.createDecipher("aes-128-cbc", passwd), o = Buffer.from(content, "hex"), update = cip.update(o); return Buffer.concat([update, cip.final()]).toString() }
以上代码的加密解密无法和 http://tool.chacuo.net/cryptaes 中的加密解密一致,两者的算法有何区别?是否有可以用C#还原出上述的代码?
https://www.cnblogs.com/yzx226/p/4090258.html
https://segmentfault.com/a/1190000019700465?utm_source=tag-newest
这篇只有解密的,待验证
下面这一篇是分析