Ejemplo n.º 1
0
        public static bool Verify(string input, string hash, EncryptorType encryptorType, string salt)
        {
            EncryptorBase enc = Init(encryptorType.ToString());

            return(enc.Verify(input, hash, salt));
        }
Ejemplo n.º 2
0
        public static string Encrypt(string input, EncryptorType encryptorType)
        {
            EncryptorBase enc = Init(encryptorType.ToString());

            return(enc.Encrypt(input));
        }
Ejemplo n.º 3
0
        public static string Decrypt(string input, EncryptorType encryptorType, string salt)
        {
            EncryptorBase enc = Init(encryptorType.ToString());

            return(enc.Decrypt(input, salt));
        }