Exemple #1
0
 /// <summary>
 /// MD5(MD5(config)+company_id+bank_id+company_order_num+amount+card_num+card_name+company_user+issue_bank_name+issue_bank_address+memo)
 /// </summary>
 /// <param name="config"></param>
 /// <returns></returns>
 public String getKey(String config)
 {
     var writer = Common.Log.LogWriterGetter.GetLogWriter();
     writer.Write("关于DP日志", "关于DP日志", Common.Log.LogType.Information, "关于DP日志", "要加密字段===============" + MD5Utils.encrypt(config) +","+ company_id + "," + bank_id + "," + company_order_num + "," + amount + "," + card_num + "," + card_name + "," + company_user + "," + issue_bank_name + "," + issue_bank_address + "," + memo + ",");
     string ubkey = MD5Utils.encrypt(MD5Utils.encrypt(config) + company_id + bank_id + company_order_num.Trim() + amount + card_num.Trim() + card_name.Trim() + company_user.Trim() + issue_bank_name.Trim() + issue_bank_address.Trim() + memo);
     return ubkey;
 }
Exemple #2
0
        public Boolean isValid(String key)
        {
            string ubkey = MD5Utils.encrypt(MD5Utils.encrypt(key) + mownecum_order_num + company_order_num + status + amount + exact_transaction_charge);

            if (this.key == ubkey)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #3
0
        /// <summary>
        /// 充值确认key
        /// MD5(MD5(config)+pay_time+bank_id+amount+company_order_num+mownecum_order_num+pay_card_num+pay_card_name+channel+area+fee+transaction_charge+deposit_mode)
        /// </summary>
        /// <returns></returns>
        public String getConfirmKey(String config)
        {
            string ubkey = MD5Utils.encrypt(MD5Utils.encrypt(config) + pay_time + bank_id + amount + company_order_num + mownecum_order_num + pay_card_num + pay_card_name + channel + area + fee + transaction_charge + deposit_mode);

            return(ubkey);
        }
Exemple #4
0
        /// <summary>
        /// 充值申请key
        /// MD5(MD5(config)+company_id+bank_id+amount+company_order_num+company_user+estimated_payment_bank+deposit_mode+group_id+web_url+memo+note+note_model)
        /// </summary>
        /// <param name="config"></param>
        /// <returns></returns>
        public String getKey(String config)
        {
            string ubkey = MD5Utils.encrypt(MD5Utils.encrypt(config) + company_id + bank_id + amount + company_order_num + company_user + estimated_payment_bank + deposit_mode + group_id + web_url + memo + note + note_model);

            return(ubkey);
        }