# Add a checksum

## <img src="/files/7y3gGJuTnkLAH0Wppnhr" alt="" data-size="line"> Add a checksum

### Description <a href="#description" id="description"></a>

The Add a Checksum transform calculates checksums for one or more fields in the input stream and adds this to the output as a new field.

| <h3 id="supported_engines">Supported Engines</h3> |
| ------------------------------------------------- |

| Hop Engine | <sup>✓</sup> |
| ---------- | ------------ |
| Spark      | <sup>✓</sup> |
| Flink      | <sup>✓</sup> |
| Dataflow   | <sup>✓</sup> |

### Options

| Option                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Transform name              | Name of the transform. Note: This name has to be unique in a single pipeline.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Type                        | <p>The type of checksum that needs to be calculated. These are the types that are available:</p><ul><li>CRC32 : 32-bit Cyclic Redundancy Check : <a href="http://en.wikipedia.org/wiki/Cyclic_redundancy_check"><http://en.wikipedia.org/wiki/Cyclic_redundancy_check></a></li><li>ADLER 32 : Checksum algorithm by Mark Adler: <a href="http://en.wikipedia.org/wiki/Adler-32"><http://en.wikipedia.org/wiki/Adler-32></a></li><li>MD5 : Message Digest algorithm 5 : <a href="http://en.wikipedia.org/wiki/MD5"><http://en.wikipedia.org/wiki/MD5></a></li><li>SHA-1 : Secure Hash Algorithm 1 : <a href="http://en.wikipedia.org/wiki/SHA-1"><http://en.wikipedia.org/wiki/SHA-1></a></li><li>SHA-256 : Secure Hash Algorithm 2 : <a href="http://en.wikipedia.org/wiki/SHA-256"><http://en.wikipedia.org/wiki/SHA-256></a></li></ul> |
| Result Type                 | Some checksum types allow to set different result types: String, Hexadecimal and Binary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Result field                | The name of the result field containing the checksum                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Fields used in the checksum | The names of the fields to include in the checksum calculation. Note: You can use the "Get Fields" button to insert all input fields from previous transforms.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/addchecksum.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
