# Hash40

Creates an algorithmic hash of an object and returns it in the CFML compat upper case format

## Method Signature

```
Hash40(input=[any], algorithm=[string], encoding=[string], numIterations=[integer])
```

### Arguments

| Argument        | Type      | Required | Description                                                                                                           | Default |
| --------------- | --------- | -------- | --------------------------------------------------------------------------------------------------------------------- | ------- |
| `input`         | `any`     | `true`   | The item to be hashed                                                                                                 |         |
| `algorithm`     | `string`  | `false`  | The supported {@link java.security.MessageDigest} algorithm (case-insensitive) or "quick" for an insecure 64-bit hash | `MD5`   |
| `encoding`      | `string`  | `false`  | Applicable to strings ( default "utf-8" )                                                                             | `utf-8` |
| `numIterations` | `integer` | `false`  |                                                                                                                       | `1`     |

## Examples

## Related

* [Hash](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/encryption/hash)
* [Hmac](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/encryption/hmac)
