public static CryptoHashCode GenHashCode(CryptoHashType type, string seed) { return(new CryptoHashCode((int)type, seed)); }
public CryptoHashCode(CryptoHashType type, string seed) : this((int)type, seed) { }
public static string GenString(CryptoHashType type, string seed) { var p = CryptoService.GetProvider(type); return(p != null?p.Generate(seed) : String.Empty); }
public static CryptoHashCodeProvider GetProvider(CryptoHashType type) { return(Providers[(int)type]); }
public CryptoHashCode(CryptoHashType type, string seed) { _Seed = seed; _ProviderID = (int)type; _Value = CryptoGenerator.GenString(type, _Seed); }
public static CryptoHashCode GenHashCode(CryptoHashType type, string seed) { return new CryptoHashCode((int)type, seed); }
public static void RegisterProvider(CryptoHashType type, HashAlgorithm hal) { Providers[(int)type] = new CryptoHashCodeProvider((int)type, hal); }
public static CryptoHashCodeProvider GetProvider(CryptoHashType type) { return Providers[(int)type]; }
public static string GenString(CryptoHashType type, string seed) { return CryptoService.Providers[(int)type].Generate(seed); }
public static string GenString(CryptoHashType type, string seed) { return(CryptoService.Providers[(int)type].Generate(seed)); }
public static CryptoHashCodeProvider GetProvider(CryptoHashType type) { return(Providers.GetValue((int)type)); }
public static string GenString(CryptoHashType type, string seed) { var p = CryptoService.GetProvider(type); return p != null ? p.Generate(seed) : String.Empty; }
public static CryptoHashCodeProvider GetProvider(CryptoHashType type) { return Providers.GetValue((int)type); }