Authentication【认证】

 

数字签名(Digital Signature)

 
为确保消息、软件或数字文档的真实性和完整性,需要使用数字签名。
它类似于手写签名或盖章,但安全性更高。
 
In order to ensure the authenticity and integrity of a message, software or digital document, digital signature is required. It's the equivalent of a handwritten signature or stamped seal, but it offers far more inherent security.
 

数字签名基于公钥加密技术中的一对相互认证的加密密钥。创建数字签名的人用私钥加密与签名相关的数据,而解密这些数据的唯一方法是使用签名者的公钥。来源:TechTarget

Digital signatures work through public key cryptography's two mutually authenticating cryptographic keys. The individual who creates the digital signature uses a private key to encrypt signature-related data, while the only way to decrypt that data is with the signer's public key (TechTarget).

 

签名串(Signature string)

 

签名查询串按以下方式组装成字符串:

 

  1. 所有参数按照 QueryString 格式,以 ASCII 码从小到大排序(即 key1=value1&key2=value2…)。
  2. 所有参数指的是通信过程中实际出现的全部参数。即使某些字段未在API中定义,它们仍需参与签名字符串的生成。
  3. 在查询字符串中,字段名称和字段值的参数均为原始值,且不会对URL进行编码处理。

 

the signature query string is assembled into a string as follows:
 
  1. All parameters are sorted by ASCII code from smallest to largest using QueryString format (i.e. key1=value1&key2=value2…).
  2. All parameters refer to all parameters that actually appear in the communication process. Even if the fields are not defined in the api, they still need to participate in the signature query string.
  3. In the query string, the field name and the field value are the original values, and the URL will not be encoded

 

算法

 

当前阶段我们仅支持MD5签名验证。
We support MD5 signature only at the current stage.

 

MD5 签名也叫 MD5 路径或哈希值。MD5 哈希值通常表示为 32 位十六进制数(例如:703862f5d0ee949ef9fc97c4be2dc6f5),代表数据(通常是文件或文本)的签名(或指纹)。MD5 签名计算公式为:sign=MD5 (query string&key=merchant key)。

An MD5 signature, also called an MD5 path or hash. A MD5 hash is typically expressed as a 32-digit hexadecimal number (this is an example of MD5 hash : 703862f5d0ee949ef9fc97c4be2dc6f5). This hash represents a signature (or footprint) of the data (data being usually a file or a text).

MD5 signature calculation formula: sign=MD5(query string&key=merchant key)

 

 

 


上次更新时间:5月14日
一切内容解释权贵Tranxplay所有