Calculates a cryptographic hash value for the flowfile content using the given algorithm and writes it to an output attribute. Please refer to https://csrc.nist.gov/Projects/Hash-Functions/NIST-Policy-on-Hash-Functions for help to decide which algorithm to use.
content, hash, sha, blake2, md5, cryptography
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values.
|Name||Default Value||Allowable Values||Description|
|Fail if the content is empty||false||Route to failure if the content is empty. While hashing an empty value is valid, some flows may want to detect empty input.|
|Hash Algorithm||SHA-256||The hash algorithm to use. Note that not all of the algorithms available are recommended for use (some are provided for legacy compatibility). There are many things to consider when picking an algorithm; it is recommended to use the most secure algorithm possible.|
|success||Used for flowfiles that have a hash value added|
|failure||Used for flowfiles that have no content if the 'fail on empty' setting is enabled|
|content_<algorithm>||This processor adds an attribute whose value is the result of hashing the flowfile content. The name of this attribute is specified by the value of the algorithm, e.g. 'content_SHA-256'.|