Пример #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));
        }
Пример #2
0
        public static string Encrypt(string input, EncryptorType encryptorType)
        {
            EncryptorBase enc = Init(encryptorType.ToString());

            return(enc.Encrypt(input));
        }
Пример #3
0
        public static string Decrypt(string input, EncryptorType encryptorType, string salt)
        {
            EncryptorBase enc = Init(encryptorType.ToString());

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