No results for ""

Powered byAlgolia

ripemd160( input, outputEncoding )

Use ripemd160 to hash an input string.

Parameter Type Description
input string The input string to hash.
outputEncoding string Describes what type of encoding to use for the hash value. Can be "base64" or "hex".


Type Description
string The string-encoded hash digest.


import crypto from 'k6/crypto';

export default function() {
  let hash = crypto.ripemd160('hello world!', 'hex');

The above script should result in the following being printed during execution:

INFO[0000] dffd03137b3a333d5754813399a5f437acd694e5