Beispiel #1
0
        public void Encryption_Valid(string originalText)
        {
            var cipherText = SymetricEncryptionHelper.Encrypt(originalText);
            var plainText  = SymetricEncryptionHelper.Decrypt(cipherText);

            Assert.Equal(originalText, plainText);
        }
 public string Convert(string source, ResolutionContext context)
 {
     return(SymetricEncryptionHelper.Encrypt(source));
 }