Capture the query input to the signer
Record the original query, its parsed name/value pairs and the bytes passed to signing. Determine whether the signer uses raw text, encoded pairs, selected fields or a separate digest. A matching URL alone does not establish matching signed input.
Keep the normalizer separate from the signing function. Compare intermediate bytes before comparing the final signature. This locates an encoding or ordering difference without treating every refusal as a bad key.
Use the scheme's encoding and ordering rules
For a concrete example, AWS's signed-request guide defines URI encoding and sorting for its canonical query. Those rules belong to that scheme, not every Android API.
Test spaces, plus signs, percent signs, Unicode and encoded separators. Preserve repeated names and their values until the actual scheme tells you how to order or select them. A dictionary that drops duplicates destroys information before signing starts.
Record absent parameters, a name without an equals sign and a name with an empty value separately. Trace whether the signer keeps or normalizes each form. Case-sensitive and case-insensitive sorting are distinct comparisons; neither implies a universal uppercase/lowercase order.
Interpret experiments as observations
Changing parameter order and receiving the same response does not prove that the server sorts. The changed field could be unsigned, ignored or rejected later under the same response. A changed error also does not identify the canonicalization rule by itself.
Use app code and captured signing inputs to explain the result. Build local fixtures for each recovered rule, including duplicate names and nested encoded values. Keep request identity, credentials and business inputs controlled in runtime comparisons.
Use the recovered normalizer in every client
Check the same query fixtures in Python and JavaScript/TypeScript, then compare the complete requests and results. Android request signing delivers the full API with both clients, Postman and complete documentation. Body canonicalization covers the separate payload rules.
Reviewed 19 October 2026 · SReverse research desk