This article is a mirror article of machine translation, please click here to jump to the original article.

View: 22986|Reply: 1

[Source] .NET version of Tenpay payment interface sign encryption method

[Copy link]
Posted on 1/14/2016 5:00:46 PM | | | |





MD5 is a summary generation algorithm that performs MD5 operations by adding the content of the merchant's communication key after the original string is signed, and the resulting summary string is the signature result. For easy comparison, the signature results are uniformly converted to uppercase characters.
MD5 signature calculation formula:
sign = MD5 (original string & key = merchant key). toUpperCase
As:
        The original string of signatures is: input_charset=GBK&partner=1900000109&total_fee=1
The merchant key is: 8db4a013a8b515349c307f1e448ce836
The result of the signature is:
sign=md5(input_charset=GBK&partner=1900000109&total_fee=1&key=8934e7d15453e97507ef794cf7b0519d)= 8DB4A013A8B515349C307F1E448CE836


However, I still have an invalid signature, I don't know where the problem is




Previous:HTTP Error 403.14 - Forbidden Error
Next:Alibaba Cloud Linux One-Click Install Web Environment V1.4.5 Standard Edition
 Landlord| Posted on 8/15/2016 11:18:17 AM |
Arrangement of parameters A-Z before MD5 encryption
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com