简单常用的加密byte[]data=Encoding.UTF8.GetBytes(input); using(DESCryptoServiceProviderdes=newDESCryptoServiceProvider()) { des.Key=ASCIIEncoding.ASCII.GetBytes(sKey); des.IV=ASCIIEncoding.ASCII.GetBytes(sKey); ICryptoTrans