Function sha256AsHex

  • Hash string into hex string

    Parameters

    • input: string

      An arbitrary text (utf-8)

    • encoding: InputEncoding = 'utf8'

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

    Returns string

    the hash for that string in hex format