Beispiel #1
0
        private bool GetSignVeryfy(SortedDictionary <string, string> inputPara, string sign)
        {
            Dictionary <string, string> strs = new Dictionary <string, string>();
            string str  = Core.CreateLinkString(Core.FilterPara(inputPara));
            bool   flag = false;

            if ((sign == null ? false : sign != ""))
            {
                string _signType = _sign_type;
                if (_signType != null)
                {
                    if (_signType != "MD5")
                    {
                        flag = AlipayMD5.Verify(str, sign, _key, _input_charset);
                    }
                }
            }
            return(flag);
        }
Beispiel #2
0
        private static string BuildRequestMysign(Dictionary <string, string> sPara)
        {
            string str;
            string str1      = Core.CreateLinkString(sPara);
            string str2      = "";
            string _signType = Submit._sign_type;

            if (_signType != null)
            {
                if (_signType != "MD5")
                {
                    str2 = "";
                    str  = str2;
                    return(str);
                }
                str2 = AlipayMD5.Sign(str1, Submit._key, Submit._input_charset);
                str  = str2;
                return(str);
            }
            str2 = "";
            str  = str2;
            return(str);
        }