当我试图破解加密和解密应用程序时,我发现他们正在使用以下内容。
https://docs.google.com/file/d/0B6UFLPrXUMm1TjVrYWFVR2t4cW8/edit?usp=sharing?
以下代码..
但我无法分析代码..你能帮忙准备一个解密应用程序来进行加密吗..
键 = D8437A50-0FAC-47EB-A359-A0A196BA7783
加密数据 = K6NjWUyOat3LdF+ZUrftrLZgydkly64e+
请这是我真正的问题。
public static string Encrypt__(string toEncrypt, bool useHashing)
{
byte[] bytes = Encoding.UTF8.GetBytes(toEncrypt);
string key = Encrypt.getKey();
string[] array = key.Split(new char[]
{
'-'
});
string s = key;
byte[] key2;
if (useHashing)
{
MD5CryptoServiceProvider mD5CryptoServiceProvider = new MD5CryptoServiceProvider();
key2 = mD5CryptoServiceProvider.ComputeHash(Encoding.UTF8.GetBytes(array[1]));
mD5CryptoServiceProvider.Clear();
}
else
{
key2 = Encoding.UTF8.GetBytes(s);
}
TripleDESCryptoServiceProvider tripleDESCryptoServiceProvider = new TripleDESCryptoServiceProvider
{
Key = key2,
Mode = CipherMode.ECB,
Padding = PaddingMode.PKCS7
};
byte[] array2 = tripleDESCryptoServiceProvider.CreateEncryptor().TransformFinalBlock(bytes, 0, bytes.Length);
tripleDESCryptoServiceProvider.Clear();
return array[0] + Convert.ToBase64String(array2, 0, array2.Length);
}