예제 #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, string salt)
 {
     EncryptorBase enc = Init(encryptorType.ToString());
     return enc.Encrypt(input, salt);
 }
예제 #3
0
 public static string Decrypt(string input, EncryptorType encryptorType)
 {
     EncryptorBase enc = Init(encryptorType.ToString());
     return enc.Decrypt(input);
 }
예제 #4
0
        public static string Encrypt(string input, EncryptorType encryptorType)
        {
            EncryptorBase enc = Init(encryptorType.ToString());

            return(enc.Encrypt(input));
        }
예제 #5
0
        public static bool Verify(string input, string hash, EncryptorType encryptorType, string salt)
        {
            EncryptorBase enc = Init(encryptorType.ToString());

            return(enc.Verify(input, hash, salt));
        }
예제 #6
0
        public static string Decrypt(string input, EncryptorType encryptorType, string salt)
        {
            EncryptorBase enc = Init(encryptorType.ToString());

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