Hash Files

Computes cryptographic hashes for local files listed in the input table.
Simply speaking, it generates unique fingerprints for file contents.
It is practically impossible to find 2 different files sharing the same hash value (collision resistence). Besides brute force attempts of trying many inputs, it is also practically impossible to restore the original file content from the fingerprint (oneway function).

Options

File path column
String column holding the local pathes of the files to be hashed.
Hash Function
The cryptographic hash function to use.
Output Format
The choice of output format. For example, a 3 byte ASCII file with content "abc", will SHA-256 hash to:%%00010* hex (upper case): BA7816BF8F01CFEA414140DE5DAE2223B00361A396177A9CB410FF61F20015AD%%00010%%00010* hex (lower case): ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad%%00010%%00010* base64 (with padding): ungWv48Bz+pBQUDeXa4iI7ADYaOWF3qctBD/YfIAFa0=%%00010%%00010*base64 (without padding): ungWv48Bz+pBQUDeXa4iI7ADYaOWF3qctBD/YfIAFa0
How to handle failed file access?
Determines how this component behaves in case one or more files cannot be read, e.g. missing files or lacking access rights.%%00010Note that currently KNIME does not allow components to show customer warnings, so in case of option 'output missing values as hash for failed files' the node will always execute with green traffic light and without warning, even if not a single hash could be calculated.
Output column name
The name of the output column that will hold the hashed values. No check is performed whether this column already exists, it would simply be overwritten in this case.

Input Ports

Icon
Table containing a String column with the local pathes of the files to hash.

Output Ports

Icon
The input table enriched by the selected output column holding the file hashes.

Nodes

Extensions

Links