normalize_wdp_input

Function normalize_wdp_input 

Source
pub fn normalize_wdp_input(input: &str) -> String
Expand description

Normalize input for WDP hash computation

Per WDP Part 5, Section 3.3:

  1. Trim leading and trailing whitespace
  2. Convert to uppercase

This ensures case-insensitive lookups and typo resilience:

  • E.Auth.Token.001E.AUTH.TOKEN.001
  • e.auth.token.001E.AUTH.TOKEN.001
  • E.Auth.Token.001 E.AUTH.TOKEN.001

All produce the same hash.