Computes a cryptographic hash digest for the provided source payload.
The data to hash
Optional
Optional length to truncate the resulting hex string
The hash algorithm to use (default: 'SHA-256')
A promise resolving to the hash hex string
Computes a cryptographic hash digest for the provided source payload.