xk6-example
    Preparing search index...

    Function b32decode

    • Decode the passed base32 encoded input string into the unencoded original input in either binary or string formats. Available options for encoding parameter are:

      • std: the standard encoding with = padding chars. This is the default.
      • rawstd: like std but without = padding characters
      • hex: the "Extended Hex Alphabet" encoding defined in RFC 4648. It is typically used in DNS.
      • rawhex: like hex but without = padding characters

      Parameters

      • input: string

        The string to base64 decode.

      • Optionalencoding: string

        The base32 encoding to use.

      • Optionalformat: string

        If "s" return the data as a string, otherwise if unspecified an ArrayBuffer object is returned.

      Returns string | ArrayBuffer