hammerspoon2-docs
    Preparing search index...

    Function base32Decode

    • Decode a base32 string (RFC 4648) into bytes

      Decoding is lenient in the ways people write base32 secrets: letters can be upper or lower case, and spaces, - and = padding are ignored. Any other character makes the text invalid.

      Parameters

      • text: string

        The base32 text to decode

      Returns Uint8Array<ArrayBufferLike> | null

      The decoded bytes, or null if the text isn't valid base32