Пример #1
0
 public static CryptoHashCode GenHashCode(CryptoHashType type, string seed)
 {
     return(new CryptoHashCode((int)type, seed));
 }
Пример #2
0
 public CryptoHashCode(CryptoHashType type, string seed)
     : this((int)type, seed)
 {
 }
Пример #3
0
        public static string GenString(CryptoHashType type, string seed)
        {
            var p = CryptoService.GetProvider(type);

            return(p != null?p.Generate(seed) : String.Empty);
        }
Пример #4
0
 public static CryptoHashCodeProvider GetProvider(CryptoHashType type)
 {
     return(Providers[(int)type]);
 }
Пример #5
0
 public CryptoHashCode(CryptoHashType type, string seed)
 {
     _Seed       = seed;
     _ProviderID = (int)type;
     _Value      = CryptoGenerator.GenString(type, _Seed);
 }
Пример #6
0
		public static CryptoHashCode GenHashCode(CryptoHashType type, string seed)
		{
			return new CryptoHashCode((int)type, seed);
		}
Пример #7
0
 public static void RegisterProvider(CryptoHashType type, HashAlgorithm hal)
 {
     Providers[(int)type] = new CryptoHashCodeProvider((int)type, hal);
 }
Пример #8
0
		public static CryptoHashCodeProvider GetProvider(CryptoHashType type)
		{
			return Providers[(int)type];
		}
Пример #9
0
		public static string GenString(CryptoHashType type, string seed)
		{
			return CryptoService.Providers[(int)type].Generate(seed);
		}
Пример #10
0
		public static void RegisterProvider(CryptoHashType type, HashAlgorithm hal)
		{
			Providers[(int)type] = new CryptoHashCodeProvider((int)type, hal);
		}
Пример #11
0
 public static string GenString(CryptoHashType type, string seed)
 {
     return(CryptoService.Providers[(int)type].Generate(seed));
 }
Пример #12
0
 public static CryptoHashCodeProvider GetProvider(CryptoHashType type)
 {
     return(Providers.GetValue((int)type));
 }
Пример #13
0
		public static string GenString(CryptoHashType type, string seed)
		{
			var p = CryptoService.GetProvider(type);

			return p != null ? p.Generate(seed) : String.Empty;
		}
Пример #14
0
		public static CryptoHashCodeProvider GetProvider(CryptoHashType type)
		{
			return Providers.GetValue((int)type);
		}