Skip to content

Hash data

  • Create a hash of any string, object, array, or number data.
  • In response, we got a hash string.
  • API Maker supports only SHA256 for creating hashing.

Request method: POST

The secret contains the name of the hashing algorithm in the 'hashingAlgorithm' key. If 'nonce' is available, used for hashing, if not available secret will be used for hashing.

URL

/api/system-api/user-path/hash-data

Request payload

{
    "name":"Joseph"
}

Hash System API

Get hash of the given data using the global object 'g'.

let hashData = await g.sys.system.hash({ "Name": "Alice" });

API Response

{
    "success": true,
    "statusCode": 200,
    "data": "be2a6a457cc36a48e4e231411d8d6498213f7ffb6d1e03066dd7fbaa6ec9402e"
}