ss-panel icon indicating copy to clipboard operation
ss-panel copied to clipboard

有没有人会c#的?来帮忙

Open xuanhuan opened this issue 9 years ago • 2 comments

这是用PHP的AES第三方类加密出来的密文:Bf0qYfkHAFZEVQ+q+C8= 这是密钥:123456 你们试一下用C#解密看看能不能解出明文,明文是6位数字。

xuanhuan avatar Sep 21 '15 13:09 xuanhuan

这是PHP实验代码

<?php 
//引入AES
require_once '../lib/Ss/AES/aes.class.php';
require_once '../lib/Ss/AES/aesctr.class.php';
echo AesCtr::encrypt("123456", 123456, 256)."<br>";
echo AesCtr::decrypt("Bf0qYfkHAFZEVQ+q+C8=", 123456, 256);
?>

AES文件在这https://github.com/xuanhuan/ss-panel/tree/smarty/lib/Ss/AES

xuanhuan avatar Sep 21 '15 13:09 xuanhuan

不懂哦~~~ 等大神

liuchao0130 avatar Sep 24 '15 03:09 liuchao0130