Result of a hash operation.
const { data } = await client.hash({ algorithm: 'sha256', data: 'hello' });const result: HashResult = data;console.log(result.digest, result.algorithm, result.length); Copy
const { data } = await client.hash({ algorithm: 'sha256', data: 'hello' });const result: HashResult = data;console.log(result.digest, result.algorithm, result.length);
Hex-encoded digest.
Hash algorithm used (e.g. "sha256").
"sha256"
Digest length in bytes.
Result of a hash operation.
Example