Skip to main content

http.hash.sha1(dataToHash)

Performs a SHA-1 hash function

Availability

Agent

Returns

Blob — the hashed data (20 bytes)

Parameters

Name Type Description
dataToHash String or blob The data to which the hash function will be applied

Description

This method performs a SHA-1 hash on the input data. Because the returned data is a blob, it is not uncommon to Base64 encode it.

Example Code

A simple example of SHA-1 hashing.