---
title: "hmacSHA256"
canonical: "https://support.appfire.com/space/PSCONF/1387234065/hmacSHA256"
format: markdown
---
> Macro (aura-html)


 > Macro (button-handy)




> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | hmacSHA256(data, key) | **Package** |  |
> | **Alias** |  | **Pkg Usage** | hmacSHA256(data, key) |

## Description

> Macro (excerpt)
> 
> Computes a signature over the data using HMAC - SHA256

Computes a signature over the data using HMAC - SHA256

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | data | string or byte[] | Yes | the data |
> | key | string | Yes | key that you want to use to compute the signature |

## Return Type

**byte []**

Signature, empty if not ok (empty data)

## See also

> Macro (contentbylabel)