FormatBytes() private static method

Gets the hex digits for the given bytes
private static FormatBytes ( byte value ) : string
value byte
return string
Esempio n. 1
0
        /// <summary>
        /// Generates a unique hash from byte[]
        /// </summary>
        /// <param name="buffer"></param>
        /// <returns></returns>
        protected static string ComputeHash(byte[] value)
        {
            // generate hash
            byte[] hash = SHA1.Create().ComputeHash(value);

            // convert hash to string
            return(ResourceBuildProvider.FormatBytes(hash));
        }