Skip to main content

Supported Signatures

  • MD5
  • HMAC-SHA256 (Coming soon)

Tools

JSON Decoder & Hash Generator

Hash Calculation Rules

  1. Hash Calculation Scope: Only the data object in the payload is used for hash calculation.
  2. Field Sorting and String Conversion:
  • Fields within the data object are sorted alphabetically.
  • Each field is converted to a key=value format.
  • 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 format array[index].field, followed by the same sorting and conversion rules.
  1. The computed Hash value is included in the HTTP response header as x-encrypted-data

MD5 Calculation Example

Assume the current secret key is ABCDEFG123456.
  • Step 1. Decode the data field 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