文件说,“如果你使用以下价值观,那么你将取得这一结果”。
Block Size: 128 Cipher Mode: CBC Padding Mode: Zeros
<<>strong>Key: BTikvHBatPdAtgT3317QIQqGFY25WpIz
<>四>:
www.un.org/spanish/ecosoc 价值待定:2008-06-02 13:28:45,Statements,1234567,06/01/2008,06/01/2008,0
而这种加密结果应如何根据开发商指南来看待所有这些价值。
b97f3985245be1065604c5808cebaa2e15813bf938cfaa3c198fd464565c13ced7c91ac6 b68326ce5ed5e81cb7de81acb9fcd1b1636127efbac3203da5bdccea
然而,由于某种原因,我无法取得这一结果,这是我用来描述这一结果的法典,但首先和以后,它给我留下了与你可能看到的在该问题的深层结果上出现的变化相同的特征。
这是法典,以下是新产出:
public static void Main(string[] args)
{
RijndaelManaged rij = new RijndaelManaged();
rij.Mode = CipherMode.CBC;
rij.Padding = PaddingMode.Zeros;
rij.Key = ASCIIEncoding.UTF8.GetBytes("BTikvHBatPdAtgT3317QIQqGFY25WpIz");
rij.IV = ASCIIEncoding.UTF8.GetBytes("a5Sg4U9m11Mw2tIZ");
ICryptoTransform transform = rij.CreateEncryptor();
byte[] data = Encoding.ASCII.GetBytes("2008-06-02 13:28:45,Statements,1234567,,06/01/2008,06/01/2008,0");
byte[] result = transform.TransformFinalBlock(data, 0, data.Length);
Console.WriteLine(ByteArrayToString(result));
}
public static string ByteArrayToString(byte[] ba)
{
StringBuilder hex = new StringBuilder(ba.Length * 2);
foreach (byte b in ba)
hex.AppendFormat("{0:x2}", b);
return hex.ToString();
}
My output :
b97f3985245be1065604c5808cebaa2e15813bf938cfaa3c198fd464565c13ced7c91ac6b68326ce5ed5e81cb7de81ac
注:随着我提出这个问题,我需要更新,找到更好的解决办法,但新问题现在就产生了。