/// <summary> /// 测试des加密 /// </summary> public void TestDesHelper() { var testStr = "FreshMan"; var enCodeStr = DesHelper.DesEnCode(testStr); var deCodeStr = DesHelper.DesDeCode(enCodeStr); deCodeStr.IsEqualTo(testStr); }