AcuMd5Hash Operator - Haufe-Lexware/haufe.no-frills-transformation GitHub Wiki

Creates an MD5 hash string from input text.

Description

The acumd5hash operator generates an MD5 hash (32-character hexadecimal string) from the input string. This is useful for creating unique identifiers, detecting duplicates, or generating keys based on content.

Parameters

Parameter Type Description
input String The text string to hash

Return Value

Returns a 32-character uppercase hexadecimal string representing the MD5 hash of the input.

Example

Configuration

<Field name="ContentHash">acumd5hash($Description)</Field>
<Field name="UniqueId">acumd5hash(concat($FirstName, $LastName, $Email))</Field>

Input Data

Description FirstName LastName Email
Test Product John Doe [email protected]
Another Item Jane Smith [email protected]
Test Product John Doe [email protected]

Output

ContentHash UniqueId
7C8E5A6F9B3D2E1A4C5F6D8E9A0B1C2D A1B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6
9D8E7F6A5B4C3D2E1F0A9B8C7D6E5F4A B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6Q7
7C8E5A6F9B3D2E1A4C5F6D8E9A0B1C2D A1B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6

Note: Records 1 and 3 have identical hashes because they have the same input values.

Use Cases

  • Duplicate detection: Identify duplicate content by comparing hashes
  • Unique identifiers: Generate deterministic IDs based on content
  • Content tracking: Track changes by comparing hashes over time
  • Deduplication: Group identical items by hash value

Behavior

  • Uses ASCII encoding for the input string
  • Produces uppercase hexadecimal output (A-F, 0-9)
  • Same input always produces the same hash (deterministic)
  • Different inputs almost always produce different hashes

Security Note

⚠️ MD5 is not cryptographically secure and should not be used for security purposes (passwords, digital signatures, etc.). It's suitable for checksums, duplicate detection, and non-security-critical unique identifiers.

Notes

  • The hash is always 32 characters long
  • Empty string input produces a valid MD5 hash
  • This operator uses ASCII encoding, which may not handle all Unicode characters correctly
  • For Acumatica localization-specific hashing, see aculocalizationmd5hash

See Also

⚠️ **GitHub.com Fallback** ⚠️