public void EncryptDecryptNullWorks()
        {
            var encrypted = EncryptUtilities.Encrypt(null, key);

            Assert.Null(encrypted);

            var decrypted = EncryptUtilities.Decrypt(encrypted, key);

            Assert.Null(decrypted);
        }
Exemplo n.º 2
0
        public void EncryptDecryptNullWorks()
        {
            var key = "lgCbJPXnfOlatjbBDKMbh0ie6bc8PD/cjqA/2tPgMS0=";

            var encrypted = EncryptUtilities.Encrypt(null, key);

            Assert.Null(encrypted);

            var decrypted = EncryptUtilities.Decrypt(encrypted, key);

            Assert.Null(decrypted);
        }
        public void EncryptDecryptNullWorks()
        {
            var key = "lgCbJPXnfOlatjbBDKMbh0ie6bc8PD/cjqA/2tPgMS0=";

            string encrypted = EncryptUtilities.Encrypt(null, key);

            Assert.AreEqual(null, encrypted, "encryption failed");

            string decrypted = EncryptUtilities.Decrypt(encrypted, key);

            Assert.AreEqual(null, decrypted, "decryption failed");
        }