Esempio n. 1
0
        public void CanEncryptNull()
        {
            var encryptedString = new TestEncryptedString {
                PlainTextValue = null
            };

            Assert.IsNull(encryptedString.EncryptedValue);
        }
Esempio n. 2
0
        public void CanDecryptEmpty()
        {
            var encryptedString = new TestEncryptedString {
                EncryptedValue = string.Empty
            };

            Assert.AreEqual("", encryptedString.PlainTextValue);
        }
Esempio n. 3
0
        public void CanEncryptEmpty()
        {
            var encryptedString = new TestEncryptedString {
                PlainTextValue = string.Empty
            };

            Assert.AreEqual("029b3a7f7ef02ccbe13edbb3a23015f8",
                            encryptedString.EncryptedValue);
        }
Esempio n. 4
0
        public void CanEncrypt()
        {
            var encryptedString = new TestEncryptedString {
                PlainTextValue = "blah"
            };

            Assert.AreEqual("6a713b04fe15c0c7c05bb97bf2a5951e",
                            encryptedString.EncryptedValue);
        }