System.Utilities.Cryptography.Hash.Compute384Base64 C# (CSharp) Method

Compute384Base64() public static method

Generates a 384-bit hash for the given data using the specified Salt value and returns the generated results as an Base-64 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 Compute384Base64 ( 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.
return string
        public static string Compute384Base64(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 Convert.ToBase64String(SHA384.ComputeHash(TD.ToArray()));
        }

Same methods

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