node.js 的aes-128-cbc如何用C#代码还原?

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

这篇只有解密的,待验证

下面这一篇是分析

https://blog.iccfish.com/2020/03/30/%E5%A6%82%E4%BD%95%E7%94%A8c%E6%AD%A3%E7%A1%AE%E8%A7%A3%E5%AF%86node-js%E4%B8%AD-crypto-createcipher-%E5%8A%A0%E5%AF%86%E7%9A%84%E6%95%B0%E6%8D%AE%EF%BC%9F/

原文地址:https://www.cnblogs.com/java2job/p/13605934.html