Skip to content

Type Property

relaxed

Corresponds to Base32 as implemented by the C code that was previously used for this functionality. Certain commonly mistyped characters are treated as their visual equivalents, whitespace and hyphens are ignored, and decoding is case-insensitive.
static let relaxed: BaseNEncoding

Discussion

RFC 4648 § 3.3 correctly considers the semantics provided by this form of Base32 insecure (in short, it permits multiple easily-exploited side channels). The public APIs below unfortunately have to use these semantics to remain consistent with the previous implementation.