Exemplo n.º 1
0
        public static string Encrypt(string decrypted)
        {
            DateTime now    = DateTime.UtcNow;
            string   Result = EncryptionExtensions.Encrypt(decrypted, PassPhrase, SaltValue, HashAlgorithm, PasswordIterations, InitVector, KeySize);

            return(Result);
        }
Exemplo n.º 2
0
        public static string Decrypt(string encrypted)
        {
            string Result = EncryptionExtensions.Decrypt(encrypted, PassPhrase, SaltValue, HashAlgorithm, PasswordIterations, InitVector, KeySize);

            return(Result);
        }