hammerspoon2-docs
    Preparing search index...

    Function sha256

    • Generate the SHA256 hash of some bytes

      Parameters

      • data: string | number[] | ArrayBuffer | Uint8Array<ArrayBufferLike>

        The bytes to hash. A string is hashed as UTF-8

      Returns string

      Hexadecimal SHA256 hash

      Throws an Error on failure; wrap calls in try/catch to handle it.