首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴ws9187的代码贴全部
//C# DES加密解密之解密方法         
public string Decrypt(string pToDecrypt, string sKey)        
{            
     DESCryptoServiceProvider des = new DESCryptoServiceProvider();            
     byte[] inputByteArray = new byte[pToDecrypt.Length / 2];            
     for (int x = 0; x < pToDecrypt.Length / 2; x++)            
     {                
        int i = (Convert.ToInt32(pToDecrypt.Substring(x * 2, 2),16));               inputByteArray[x] = (byte)i;            
     }            
     byte [] inputByteArraykey = new byte[sKey.Length / 2];            
     for (int x = 0; x < sKey.Length / 2; x++)            
     {                
......................
阅读全部 | 2014年8月14日 09:20
1
ws9187