---
title: "Hash"
description: "Hash a value with bcrypt, MD5, SHA-1, SHA-256, or SHA-512."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/utility/hash"
---
# Hash

> Hash a value with bcrypt, MD5, SHA-1, SHA-256, or SHA-512.

<block-meta block="Yes" channels="Any" folder="basic/utility" group="Utility" groupTo="/build/workflows/blocks/utility" icon="i-lucide-shield" pipe="Value" scope="Any" tool="No" type="utl.hash">



</block-meta>

**Hash** (canvas label **Generate Hash**) computes a digest of **Value** and writes it to the data pipe. Hashing is one-way; use [Encode](https://docs.vettero.com/build/workflows/blocks/utility/encode) when you need to reverse the transformation.

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Value
      </strong>
    </td>
    
    <td>
      Literal or variable to hash (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Hash type
      </strong>
    </td>
    
    <td>
      <strong>
        bcrypt
      </strong>
      
      , <strong>
        md5
      </strong>
      
      , <strong>
        sha1
      </strong>
      
      , <strong>
        sha256
      </strong>
      
      , or <strong>
        sha512
      </strong>
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after hashing
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`). The value is `text`.

## Use case

- Fingerprint a payload before storing or comparing it.
- Produce a checksum to send with an [API](https://docs.vettero.com/build/workflows/blocks/utility/api) request.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
