n8n Crypto: inspect AI result byte hashes
Compute SHA256 for existing results and distinguish bytes, accuracy and source authentication.
Establish which bytes to compare · Choose SHA256 in Hash · Inspect consistency and authentication separately
At a glance
This guide explains one existing-data task from official node documentation. Establish input and receiver contracts, configure parameters and inspect output. Local checks use public synthetic data without running n8n or calling a model.
Checks from input to delivery
Inspect input
Check fields, formats and receiver prerequisites.
Configure conversion
Use the documented operation and actual fields.
Inspect output
Check count, types and boundaries before continuing.
Establish which bytes to compare
Use an existing result or defined string and establish encoding, line endings and the target field. The fixture uses UTF-8 bytes for Public A, differing from the same text with a trailing newline. Hashing neither regenerates results nor judges model conclusions. A comparison baseline must come from the actual saved input.
Choose SHA256 in Hash
Choose SHA256 as Type in the Crypto Hash action. For a string, disable Binary File and set Value; for a file, enable it and enter the actual Binary Property Name. Property Name sets the destination, such as resultHash. Match HEX or BASE64 encoding to the baseline. Hashing a filename through Value does not hash the file content.
Inspect consistency and authentication separately
A hash compares selected bytes with a baseline; it does not establish facts, publisher or permission. Credentials for Hmac, Sign, Encrypt and Decrypt are separate, and this guide configures none of them. Record algorithm, input scope and encoding. Inspect serialization, whitespace and field-order changes before replacing a baseline.
Inspect two byte sequences locally
Local hashlib checks confirmed equal SHA256 for equal bytes, a different value after adding a newline and a 64-character HEX result. No Crypto node or generation API was executed. Stop comparison on missing fields or mismatched algorithm or encoding; a different hash alone does not establish a model content error.
Article sources
Original editorial content; official descriptions and checking suggestions are distinguished.