public void TestMethod1() { string temp = "123321321321321312312"; byte[] temp2 = Cryptography.RandomByteArray(1); byte[] temp3 = Cryptography.RandomByteArray(16); Assert.AreEqual(temp, temp.AESEncrypt(out byte[] a, out byte[] b).AESStringDecrypt(a, b)); Assert.AreEqual(temp2.FormatX2String(), temp2.AESEncrypt(temp3, temp3, 128).AESDecrypt(temp3, temp3, 128).FormatX2String()); Assert.AreEqual(temp, temp.RSAEncrypt(out RSAKeySet key, out RSAKeySet key2).RSAStringDecrypt(key2)); Assert.AreEqual(temp3.FormatX2String(), temp3.RSAEncrypt(key).RSADecrypt(key2).FormatX2String()); }