首页
社区
课程
招聘
[求助]解密CryptKeyValue
发表于: 2015-5-1 09:37 4081

[求助]解密CryptKeyValue

2015-5-1 09:37
4081
已知version_Encrypt.xml 為加密後的檔,
CryptKeyValue="3uR]Hmolto8X;4Kp" 為byte[] Key
version_DeCrypt.xml 為解密後的檔,
BST.Core.dll 為加解密程式,部份程式如下:
如有一個未知的CryptKeyValue ,加密後的檔為 version_Encrypt.xml,
及解密後的檔為 version_DeCrypt.xml ,那可以求出CryptKeyValue嗎?
感謝各位前輩指教,感恩囉~^_^~
//加密
public static byte[] Encrypt(byte[] clearData, byte[] Key)
{
    int num;
    int num2;
    int[,] numArray;
    int[,] numArray2;
    CreateKey(Key, out num, out num2, out numArray, out numArray2);
    byte[] src = Encrypt(clearData, num, num2, numArray);
    byte[] bytes = BitConverter.GetBytes(src.Length);
    byte[] dst = new byte[src.Length + bytes.Length];
    Buffer.BlockCopy(bytes, 0, dst, 0, 4);
    Buffer.BlockCopy(src, 0, dst, 4, dst.Length - 4);
    return dst;
}

//解密
public static byte[] Decrypt(byte[] cipherData, byte[] Key)
{
    int num;
    int num2;
    int[,] numArray;
    int[,] numArray2;
    byte[] clearData = PrepareCipher(cipherData);
    CreateKey(Key, out num, out num2, out numArray, out numArray2);
    return Decrypt(clearData, num, num2, numArray2);
}
====
namespace BST.Core.Security
{
    public class Cryptography
}

[培训]科锐逆向工程师培训第53期2025年7月8日开班!

上传的附件:
收藏
免费 0
支持
分享
最新回复 (0)
游客
登录 | 注册 方可回帖
返回