set_base32_alphabet

The `set_base32_alphabet` directive sets a custom alphabet for base32 encoding in NGINX.

Syntaxset_base32_alphabet string;
Defaultnone
Contexthttp, server, location, if in server, if in location
Arguments1

Description

The set_base32_alphabet directive allows users to specify a custom alphabet for base32 encoding operations within the NGINX server configuration. By default, base32 encoding uses a standard alphabet, but there are scenarios where a different set of characters is preferred, such as when interfacing with systems that have custom requirements. When this directive is defined in the configuration, it affects how the set_encode_base32 and set_decode_base32 directives function, ensuring that the encoding and decoding processes adhere to the specified alphabet instead of the default.

Config Example

set_base32_alphabet "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";

Be cautious with the alphabet length; it should contain 32 unique characters.

Changing the base32 alphabet might lead to incompatibility with existing systems that expect the default alphabet.

← Back to all directives