Bun

interface

crypto.OneShotDigestOptions

interface OneShotDigestOptions

  • outputEncoding?: 'buffer' | BinaryToTextEncoding

    Encoding used to encode the returned digest.

  • outputLength?: number

    For XOF hash functions such as 'shake256', the outputLength option can be used to specify the desired output length in bytes.