Skip to content

HashContent

Computes cryptographic hashes of content and stores them in metadata.

Parameters

NameDescriptionAllowed ValuesRequiredDefault
algorithmHash algorithm to useMD5
SHA-1
SHA-256
SHA-384
SHA-512
SHA-256
contentIndexesList of content indexes to include or excludeinteger (list)
contentTagsList of content tags to include or exclude, matching anystring (list)
excludeContentIndexesExclude specified content indexesbooleanfalse
excludeContentTagsExclude specified content tagsbooleanfalse
excludeFilePatternsExclude specified file patternsbooleanfalse
excludeMediaTypesExclude specified media typesbooleanfalse
filePatternsList of file patterns to include or exclude, supporting wildcards (*)string (list)
mediaTypesList of media types to include or exclude, supporting wildcards (*)string (list)
metadataKeyMetadata key for the hash valuestringhash

Input

Content

Input content to act on may be selected (or inversely selected using the exclude parameters) with contentIndexes, mediaTypes, and/or filePatterns. If any of these are set and the content is not matched, the content is passed through unchanged without computing a hash.

Output

Content

Content is passed through unchanged.

Metadata

KeyDescription
hash (or hash.0, hash.1...)The computed hash value in lowercase hexadecimal

For a single content piece, the hash is stored with the configured metadataKey (default: "hash"). For multiple content pieces, the index is appended (e.g., "hash.0", "hash.1").

Errors

  • On unsupported hash algorithm
  • On failure to compute hash

Contact US