Skip to content

USstatecodesLookup

Based on Extensible Algorithm Framework

The USstatecodesLookup algorithm is an instance of the Secure Lookup Algorithm Framework.

This algorithm performs a lookup on the input value and returns a value from the provided lookup file. It is possible for this algorithm to produce the same output value for different input values. Inputs to this algorithm are case-sensitive so two inputs with the same value in different cases may mask to different values. Leading and trailing whitespaces are preserved by this algorithm.

The lookup values for this algorithm are 2-letter United States state and territory codes.

For example:

  • "AL" → "CA"
  • "Maine" → "UT"
  • "west virginia" → "SD"
  • "Italy" → "PR"