# =HASH() Formula for Google Sheets

> Reference for =HASH(value, algorithm), the general-purpose Hash Data formula for hashing any identifier with secure cryptographic algorithms in Sheets.

- Source: https://www.8apps.co/docs/hash-data/using-hash-data/hash
- Markdown: https://www.8apps.co/docs/hash-data/using-hash-data/hash.md
- Language: en

---
# =HASH(value, [algorithm])

The =HASH() function allows you to hash any kind of data, including emails, phone numbers, or any other identifiers, using secure cryptographic algorithms, directly within Google Sheets.

## Parameters:

| Parameter              | Description                                          | Example                                        |
| ---------------------- | ---------------------------------------------------- | ---------------------------------------------- |
| `value`                | The text, number, or cell reference you want to hash | `=HASH(A2)`                                    |
| `algorithm` (optional) | Choose from: SHA256, MD5, SHA1, SHA512 and SHA3-256  | `=HASH(A2, "MD5")` `=HASH("John Doe", "SHA1")` |
