---
title: SHA sign and return Hex
slug: sha-sign-and-return-hex
docTags: 
createdAt: 2021-07-26T08:55:33.000Z
---

This hashes your input with a provided key using SHA256 algorithm and returns a hex value



### API Definition

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://orca.pathfix.com/functions/text/tosha256tohex",
  "name": "SHA to Hex API",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "i2xajD67E_BwzGQJFDoBC",
        "code": "{\n\t\"output\": \"73cba95c1178d585156e158e0d81cc6b45bb830514c64092dbf573be542ddad1\"\n}",
        "language": "200"
      },
      {
        "id": "w60qsQw0dC5hcSjKrPwd-",
        "code": "{\n    \"message\": \"error\"\n}",
        "language": "404"
      }
    ],
    "selectedLanguageId": "i2xajD67E_BwzGQJFDoBC"
  },
  "examples": {
    "languages": [
      {
        "id": "sWXNgNLPHDf5Z8m_LnIQQ",
        "code": "{\r\n\t\"input\": \"202038-1209292838-2928382-392929\",\r\n\t\"key\": \"/.jjshds@dslldkwie\"\r\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "sWXNgNLPHDf5Z8m_LnIQQ"
  },
  "description": "Call the following API to hash your input",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::

### &#xD;&#xA;Use Cases

Used in cases where the requirement is to compare signatures. Commonly used in signature verification of webhooks etc.









