Exemplo n.º 1
0
        public void TestEncryptDecryptString()
        {
            var testString = "DAS IST DAS WORT!!!";
            var password   = "******";

            var encrypted = _encryption.EncryptString(testString, password);

            Assert.NotNull(encrypted);

            var decrypted = _encryption.DecryptString(encrypted, password);

            Assert.Equal(testString, decrypted);
        }