create hashcode of file(a[,b][,c][,d])
Group |
Calculates a checksum of given file a by using hash algorithm b. The checksum can be delimited by c.
The function supports all algorithms that are supported by the Java Virtual Machine.
Description of Parameters
Parameter |
Description |
a |
Filename incl. path. |
b |
(optional) The hash algorithm to be used. Default: md5. |
c |
(optional) The separator between the values. 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 |
SHA-1 |
72ce562c77f67d34332150cb9f3835685aa97000 |
||
./some_file |
SHA-1 |
: |
72:ce:56:2c:77:f6:7d:34:33:21:50:cb:9f:38:35:68:5a:a9:70:00 |