xk6-example
    Preparing search index...

    Function b32encode

    • Encode the passed input string or ArrayBuffer object to base32 encoded string. 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 | ArrayBuffer

        The input string or ArrayBuffer object to base32 encode.

      • encoding: string

        The base32 encoding to use.

      Returns string