Ejemplo n.º 1
0
        /// <summary>
        /// 创建hash字符串
        /// </summary>
        /// <param name="ticket"></param>
        /// <param name="timestamp"></param>
        /// <param name="nonce"></param>
        /// <param name="url"></param>
        /// <returns></returns>
        public string CreateShaString(string ticket, string timestamp, string nonce, string url)
        {
            var string1 = "jsapi_ticket=" + ticket + "&noncestr=" + nonce + "&timestamp=" + timestamp + "&url=" + url;

            return(HashTool.ComputeSha256Hash(string1));
        }