Ejemplo n.º 1
0
        /// <summary>
        /// Gnerate SHA1 hash.
        /// </summary>
        /// <param name="pObject"></param>
        /// <returns></returns>
        public static string GenerateSHA1Hash(object pObject)
        {
            JArray       sorted = SortObj(pObject);
            string       strVal = sorted.ToString(Formatting.None);
            IHashService hasher = ServiceFinder.Resolve <IHashService> ();

            return(hasher.GenerateSha1Hash(strVal));
        }