Supported Signatures
- MD5
- HMAC-SHA256 (Coming soon)
Tools
JSON Decoder & Hash Generator
Hash Calculation Rules
- Hash Calculation Scope: Only the
dataobject in the payload is used for hash calculation. - Field Sorting and String Conversion:
- Fields within the
dataobject are sorted alphabetically. - Each field is converted to a
key=valueformat. - Fields are joined using the
&character. - For nested objects within
data, the same sorting and conversion rules apply. - For arrays within
data, elements are referenced using the formatarray[index].field, followed by the same sorting and conversion rules.
- The computed Hash value is included in the HTTP response header as
x-encrypted-data
MD5 Calculation Example
Assume the current secret key isABCDEFG123456.
- Step 1. Decode the
datafield in response into String
- Step 2. Concat the secret key as suffix
- Step 3. Calculate the MD5 Hash
- Step 4. Compare the hash with the response header - x-encrypted-data