求DES加密算法相关的电子书,偶对加密解密比较感兴趣,最近又需要做类似的项目,苦于无资料参考。如有哪位仁兄能提供相关方面的电子书(加解密算法设计方面的),小弟不胜感激!!并高分相送!!

解决方案 »

  1.   

    留e-mail,我发给你
    顺便说一句,.net类库里有,不用自己编
      

  2.   

    wo ye yao   
    谢谢
    [email protected]
      

  3.   

    这个加密算法应该是.NET 类库中有提供的,可以自己查查MSDN ,System.Security.Cryptography  空间中的 DES 类 private static void EncryptData(String inName, String outName, byte[] desKey, byte[] desIV)
     {    
         //Create the file streams to handle the input and output files.
         FileStream fin = new FileStream(inName, FileMode.Open, FileAccess.Read);
         FileStream fout = new FileStream(outName, FileMode.OpenOrCreate, FileAccess.Write);
         fout.SetLength(0);
           
         //Create variables to help with read and write.
         byte[] bin = new byte[100]; //This is intermediate storage for the encryption.
         long rdlen = 0;              //This is the total number of bytes written.
         long totlen = fin.Length;    //This is the total length of the input file.
         int len;                     //This is the number of bytes to be written at a time.
     
         DES des = new DESCryptoServiceProvider();          
         CryptoStream encStream = new CryptoStream(fout, des.CreateEncryptor(desKey, desIV), CryptoStreamMode.Write);
                    
         Console.WriteLine("Encrypting...");
     
         //Read from the input file, then encrypt and write to the output file.
         while(rdlen < totlen)
         {
             len = fin.Read(bin, 0, 100);
             encStream.Write(bin, 0, len);
             rdlen = rdlen + len;
             Console.WriteLine("{0} bytes processed", rdlen);
         }
     
         encStream.Close();  
         fout.Close();
         fin.Close();                   
     }
     
    可以去看看  http://msdn.microsoft.com/library/chs/
      

  4.   

    还有 偶的应用将需要即可加密又可对加密后的密文解密。也就是说要设计两个算法(en & de).
      

  5.   

    好像是4M吧 要不你用msn传给我 我的msn是[email protected]
      

  6.   

    我在校园网,msn不能用的。刚刚发了一个小的,你收一下。我拆分开发。
      

  7.   

    ok 我的qq是:50283802
    下班后我会加你的。
      

  8.   

    怎么没见你加我?你有没有开通CSDN邮箱?那个是1G的。
      

  9.   

    csdn的好像没有开通我有gmail的  2G 
    [email protected]