Function sha256AsBytes

  • Hash string into byte array

    Parameters

    • input: string

      An arbitrary text

    • encoding: InputEncoding = 'utf8'

      The encoding of input type (default: 'utf8')

    Returns Uint8Array

    the hash for that string in Uint8Array