hammerspoon2-docs
    Preparing search index...

    Namespace hashing

    Module for hashing and encoding operations

    Every function that takes data accepts it as bytes, in any of these forms:

    • a Uint8Array (or any other typed array) or an ArrayBuffer
    • an array of numbers from 0 to 255
    • a string, which is used as its UTF-8 encoding

    Anything else throws an error, rather than quietly hashing some other bytes.

    base32Decode
    base32Encode
    base64Decode
    base64Encode
    digest
    hmac
    hmacMD5
    hmacSHA1
    hmacSHA256
    hmacSHA512
    md5
    sha1
    sha256
    sha512