示例#1
0
        public void TestRoundTripeEmpty()
        {
            const string TestString = "";

            CertificateHelper.InvokeWithDummyCert(
                (fingerprint) =>
            {
                var encrypted = DataTransform.Encrypt(fingerprint, TestString);
                var decrypted = DataTransform.Decrypt(encrypted);

                Assert.AreEqual(decrypted, TestString);
            });
        }
示例#2
0
        public void TestRoundTrip2()
        {
            const string TestString =
                "asdfasdfas;dlffkjpowQYB93YRY7982UO1HQW AHAUI FACPWUH F CAHGUIWEA RY93QRCHWEFCS;DHFVOAWGOSE7R HAE";

            CertificateHelper.InvokeWithDummyCert(
                (fingerprint) =>
            {
                var encrypted = DataTransform.Encrypt(fingerprint, TestString);
                var decrypted = DataTransform.Decrypt(encrypted);

                Assert.AreEqual(decrypted, TestString);
            });
        }