---
title: "Crypto"
description: "HMAC signatures and JSON web tokens for webhook and API auth."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/crypto"
---
# Crypto

> HMAC signatures and JSON web tokens for webhook and API auth.

**Crypto** blocks sit in the builder palette under **Basic → Crypto**. They work on **any** workflow channel. Shared graph rules are on [Workflows](https://docs.vettero.com/build/workflows).

Use these when a partner webhook needs a signature check, or when you mint or check a bearer token. Put secrets in workspace env keys (variable mode), not as long-lived literals on the canvas.

Invalid HMAC or JWT checks are **catchable** errors (`MISSING_VALUE`, `HMAC_INVALID`, `JWT_INVALID`, `JWT_MALFORMED`). Catch them with a block **Error** outlet or [Try](https://docs.vettero.com/build/workflows/blocks/error/try). Connect [Branch errors](https://docs.vettero.com/build/workflows/blocks/error/branch) to **Error** to split those codes.

<table>
<thead>
  <tr>
    <th>
      Use
    </th>
    
    <th>
      Block
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Sign a webhook body or request
    </td>
    
    <td>
      <a href="https://docs.vettero.com/build/workflows/blocks/crypto/hmac-create">
        HMAC Create
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Check an inbound signature
    </td>
    
    <td>
      <a href="https://docs.vettero.com/build/workflows/blocks/crypto/hmac-verify">
        HMAC Verify
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Mint a bearer token
    </td>
    
    <td>
      <a href="https://docs.vettero.com/build/workflows/blocks/crypto/jwt-sign">
        JWT Sign
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Trust an inbound JWT
    </td>
    
    <td>
      <a href="https://docs.vettero.com/build/workflows/blocks/crypto/jwt-verify">
        JWT Verify
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Inspect claims without checking the signature
    </td>
    
    <td>
      <a href="https://docs.vettero.com/build/workflows/blocks/crypto/jwt-decode">
        JWT Decode
      </a>
    </td>
  </tr>
</tbody>
</table>

<searchable-card-grid :items="[{"title":"HMAC Create","description":"HMAC-sign a value with a secret. Hex, Base64, or Base64 URL.","icon":"i-lucide-key","to":"/build/workflows/blocks/crypto/hmac-create","keywords":"hmac sign signature webhook sha256"},{"title":"HMAC Verify","description":"Check an HMAC signature. Mismatch fails the block.","icon":"i-lucide-shield-check","to":"/build/workflows/blocks/crypto/hmac-verify","keywords":"hmac verify webhook signature"},{"title":"JWT Sign","description":"Sign a JSON web token with a secret or PEM private key.","icon":"i-lucide-file-key","to":"/build/workflows/blocks/crypto/jwt-sign","keywords":"jwt sign bearer token hs256 rs256"},{"title":"JWT Verify","description":"Verify a JWT signature and claims. Invalid tokens fail the block.","icon":"i-lucide-badge-check","to":"/build/workflows/blocks/crypto/jwt-verify","keywords":"jwt verify bearer auth"},{"title":"JWT Decode","description":"Read JWT claims without checking the signature. Untrusted.","icon":"i-lucide-scan-eye","to":"/build/workflows/blocks/crypto/jwt-decode","keywords":"jwt decode inspect payload"}]" empty="No crypto blocks match that search." placeholder="Search crypto blocks…">



</searchable-card-grid>

<block-page-nav>



</block-page-nav>


## Sitemap

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