角加密和C#解密(.NET) | 您所在的位置:网站首页 › aes加密的iv值 › 角加密和C#解密(.NET) |
我建议您看到这个https://dotnetfiddle.net/Y7TFl0,这是用于加密和解密的完美c#代码。对于JS,请查看此https://stackblitz.com/edit/cryptojs-aes-encrypt-decrypt-vfr5py?file=index.js 两者是不同的 我的c#代码 字符串pw = "12345";字符串数据=加密(“[email protected]”,pw); string angularDecSring = "U2FsdGVkX19klqZyBO7JyNzfxCBxAizFPkVYX%2Bb%2BUNs%2FVGEcr%2Fcxz3JmQcEgiojQ"; string decodeString = HttpUtility.UrlDecode(angularDecSring); Console.WriteLine("UrldecodeString: " + decodeString); Console.WriteLine("decrypt Value:" + HttpUtility.UrlEncode(data)); Console.WriteLine("Decrypted: " + Decrypt(data, pw));这是输出: IV字节阵列: 68 37 67 33 65 34 6D 33 74 35 73 74 35 7A6A 77 (大小: 16)小块大小:128位UrldecodeString: Value:IKVfDJLHlkrqoHNTYEabnkwwi8DiAKki4QZ6q9OndAA%3d解密: [email protected] |
CopyRight 2018-2019 实验室设备网 版权所有 |