System.Utilities.Cryptography.Hash.Compute384Byte C# (CSharp) Метод

Compute384Byte() публичный статический Метод

Generates a 384-bit hash for the given data using the specified Salt value and returns the generated results as an array of bytes. 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 Compute384Byte ( IEnumerable Data, IEnumerable Salt ) : byte[]
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.
Результат byte[]
        public static byte[] Compute384Byte(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 SHA384.ComputeHash(TD.ToArray());
        }

Same methods

Hash::Compute384Byte ( System Data ) : byte[]
Hash::Compute384Byte ( byte Data ) : byte[]
Hash::Compute384Byte ( string Data ) : byte[]