Exemplo n.º 1
0
        public void EncryptDecrypt()
        {
            _rs256Output = RS256.Encrypt(_RS256_INPUT, _PASSWORD);
            Assert.IsNotEmpty(_rs256Output);

            string decrypted = RS256.Decrypt(_rs256Output, _PASSWORD).Trim('\0');

            Assert.IsNotEmpty(decrypted);
            Assert.AreEqual(_RS256_INPUT, decrypted);
        }
Exemplo n.º 2
0
 public static string Decrypt(string input)
 {
     return(RS256.Decrypt(input));
 }