Skip to main content

sha3

Callable

  • sha3(data: Bytes): undefined | string

  • computes the Keccak-256 hash of the input and returns a hexstring

    @example
    console.log(web3.utils.sha3('web3.js'));
    > 0x63667efb1961039c9bb0d6ea7a5abdd223a3aca7daa5044ad894226e1f83919a

    console.log(web3.utils.sha3(''));
    > undefined

    Parameters

    • data: Bytes

      the input to hash

    Returns undefined | string

    • the Keccak-256 hash of the input