create hashcode of file()

This function calculates a checksum for file a by using hash algorithm b. To increase readability, separators c can be specified between the individual values when generating the checksum. See examples.

The function supports all algorithms that are supported by the Java Virtual Machine.

Parameters


Parameter

Description

a

Filename with path.

b

(optional) The hash algorithm to be used. Default: "MD5". Note: Use the three dots to select a value.

c

(optional) The separator between the values. See examples. Default: <empty>.

d

(optional) If "true", the hash code is returned as a Base64-encoded string. This functionality is necessary when connecting to Amazon web services, for example. Default: "false".

Examples


Parameter a

Parameter b

Parameter c

Parameter d

Result

./some_file.txt

SHA-1



72ce562c77f67d34332150cb9f3835685aa97000

./some_file.txt

SHA-1

:


72:ce:56:2c:77:f6:7d:34:33:21:50:cb:9f:38:35:68:5a:a9:70:00