# HashingUtil

`HashingUtil` class provides utility methods for hashing data using various algorithms. It offers a simple and convenient way to generate hash values for different data types. The class is designed to be thread-safe.

## Methods

#### md2Hex`(String: str): String`

Calculates the MD2 digest and returns the value as a 32 character hex string.

*@param*`str` — The string to hash.

*@return* — MD2 digest as a hex string.

```javascript
HashingUtil.md2Hex("Some data");
```

#### md5Hex`(String: str): String`

Calculates the MD5 digest and returns the value as a 32 character hex string.

*@param*`str` — The string to hash.

*@return* — MD5 digest as a hex string.

```javascript
HashingUtil.md5Hex("Some data");
```

#### sha1Hex`(String: str): String`

Calculates the SHA-1 digest and returns the value as a hex string.

*@param*`str` — The string to hash.

*@return* — SHA-1 digest as a hex string.

```javascript
HashingUtil.sha1Hex("Some data");
```

#### sha256Hex`(String: str): String`

Calculates the SHA-256 digest and returns the value as a hex string.

*@param*`str` — The string to hash.

*@return* — SHA-256 digest as a hex string.

```javascript
HashingUtil.sha256Hex("Some data");
```

#### sha384Hex`(String: str): String`

Calculates the SHA-384 digest and returns the value as a hex string.

*@param*`str` — The string to hash.

*@return* — SHA-384 digest as a hex string.

```javascript
HashingUtil.sha384Hex("Some data");
```

#### sha3\_224Hex`(String: str): String`

Calculates the SHA3-224 digest and returns the value as a hex string.

*@param*`str` — The string to hash.

*@return* — SHA3-224 digest as a hex string.

```javascript
HashingUtil.sha3_224Hex("Some data");
```

#### sha3\_256Hex`(String: str): String`

Calculates the SHA3-256 digest and returns the value as a hex string.

*@param*`str` — The string to hash.

*@return* — SHA3-256 digest as a hex string.

```javascript
HashingUtil.sha3_256Hex("Some data");
```

#### sha3\_384Hex`(String: str): String`

Calculates the SHA3-384 digest and returns the value as a hex string.

*@param*`str` — The string to hash.

*@return* — SHA3-384 digest as a hex string.

```javascript
HashingUtil.sha3_384Hex("Some data");
```

#### sha3\_512Hex`(String: str): String`

Calculates the SHA3-512 digest and returns the value as a hex string.

*@param*`str` — The string to hash.

*@return* — SHA3-512 digest as a hex string.

```javascript
HashingUtil.sha3_512Hex("Some data");
```

#### sha512Hex`(String: str): String`

Calculates the SHA-512 digest and returns the value as a hex string.

*@param*`str` — The string to hash.

*@return* — SHA-512 digest as a hex string.

```javascript
HashingUtil.sha512Hex("Some data");
```

#### sha512\_256Hex`(String: str): String`

Calculates the SHA-512/256 digest and returns the value as a hex string.

*@param*`str` — The string to hash.

*@return* — SHA-512/256 digest as a hex string.

```javascript
HashingUtil.sha512_256Hex("Some data");
```


---

# 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.b2winsuite.com/5.6/scripting/utilities/hashingutil.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.
