System.Utilities.Cryptography.Hash.Compute512Hex C# (CSharp) Méthode

Compute512Hex() public static méthode

Generates a 512-bit hash for the given data using the specified Salt value and returns the generated results as a hexadecimal string. If no salt value is given one is automatically used. (NOTE: The default salt value is static and should not be considered secure!)
public static Compute512Hex ( IEnumerable Data, IEnumerable Salt ) : string
Data IEnumerable The data to be hashed. Takes an array of bytes.
Salt IEnumerable The salt value used to help prevent dictionary attacks. Takes an array of bytes.
Résultat string
        public static string Compute512Hex(IEnumerable<byte> Data, IEnumerable<byte> Salt)
        {
            var TD = new List<byte>(Data);
            var TS = new List<byte>(Salt);

            //The Salt Algorithm
            TD.AddRange(TS);
            foreach (byte b in TS)
            {
                TD.Insert(0, b);
                TD.Insert(TD.Count - 1, b);
            }

            return BitConverter.ToString(SHA512.ComputeHash(TD.ToArray())).Replace("-", "");
        }

Same methods

Hash::Compute512Hex ( System Data ) : string
Hash::Compute512Hex ( byte Data ) : string
Hash::Compute512Hex ( string Data ) : string