public void TestMethod1() { int testCount = 100000; // 每个模块测试次数 // 测试加密解密模块是否有效 for (int i = 0; i < testCount; i++) { string str = MadeRandomString(10, 100); Assert.AreEqual(str, Ecoder.CSDecode(Ecoder.CSEncode(str))); Assert.AreEqual(str, Ecoder.myDecode(Ecoder.myEncode(str))); } }
static void Main(string[] args) { Console.WriteLine(Ecoder.myDecode("-E7+-I.@E,,XRj:c^^,YOO7`[[@ZgaAiaihifPCh_a0")); }