DES

一段asp.net DES加密解密的代码
.NET

一段asp.net DES加密解密的代码

21 0

//加密123456789101112131415161718192021public string DesEncrypt(string strText, string strEncrKey) { byte[] byKey=null; byte[] IV= {0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF}; try { byKey = System.Text.Encoding.UTF8.GetBytes(strEncrKey.Subst