Exemplo n.º 1
0
 public static CryptoHashCode GenHashCode(CryptoHashType type, string seed)
 {
     return(new CryptoHashCode((int)type, seed));
 }
Exemplo n.º 2
0
 public CryptoHashCode(CryptoHashType type, string seed)
     : this((int)type, seed)
 {
 }
Exemplo n.º 3
0
        public static string GenString(CryptoHashType type, string seed)
        {
            var p = CryptoService.GetProvider(type);

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

			return p != null ? p.Generate(seed) : String.Empty;
		}
Exemplo n.º 14
0
		public static CryptoHashCodeProvider GetProvider(CryptoHashType type)
		{
			return Providers.GetValue((int)type);
		}