--- title: "create hashcode()" slug: "basic-calculate-hash" updated: 2026-08-11T08:02:13Z published: 2026-08-11T08:02:13Z canonical: "docs.lobstersoftware.com/basic-calculate-hash" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # create hashcode() Calculates a hash code using binary data and a hash algorithm **b**. The binary data is created from a text **a** and a charset **d**. To increase the readability it's possible to specify a text **c** being used as the separator between the hash values. Using an invalid charset or an unsupported hash algorithm leads to an error aborting the Mapping. ## Parameters | Parameter | Description | | --- | --- | | a | The text to calculate the hashcode from. | | b | (optional) The hash algorithm to be used. Default: "md5". | | c | (optional) The separator between the values. Default: No separator. | | d | (optional) The encoding to be used for the generation of bytes from the text. Default: "utf8". | ## Examples | Parameter a | Parameter b | Parameter c | Parameter d | Result | | --- | --- | --- | --- | --- | | | | | | d41d8cd98f00b204e9800998ecf8427e | | | md5 | | | d41d8cd98f00b204e9800998ecf8427e | | | sha1 | | | da39a3ee5e6b4b0d3255bfef95601890afd80709 | | test äöü€ | sha1 | | | 72ce562c77f67d34332150cb9f3835685aa97000 | | test äöü€ | sha1 | : | | 72:ce:56:2c:77:f6:7d:34:33:21:50:cb:9f:38:35:68:5a:a9:70:00 | | test äöü€ | sha1 | : | 8859_1 | 6f:a3:89:17:cd:4b:f6:1e:4a:f0:8b:06:9b:bf:85:b7:a9:41:91:71 | | test äöü? | sha1 | : | 8859_1 | 6f:a3:89:17:cd:4b:f6:1e:4a:f0:8b:06:9b:bf:85:b7:a9:41:91:71 | | test äöü€ | sha1 | : | 8859_15 | f3:5c:01:b0:81:a2:40:11:c4:54:b5:50:b9:95:e8:ba:e4:be:36:ab | Because the Euro sign is not part of encoding "8859_1", it is replaced by a question mark, leading to the effect that two different texts result into the same hash value. The core task of Phase 3. Mapping transfers data from the source structure to the target structure according to defined rules. In the process, fields can be transformed, functions can be called, and values can be calculated.