1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
5 #include "cmConfigure.h" // IWYU pragma: keep
10 /** \class cmBase32Encoder
11 * \brief Encodes a byte sequence to a Base32 byte sequence according to
18 static const char paddingChar = '=';
21 ~cmBase32Encoder() = default;
23 // Encodes the given input byte sequence into a string
24 // @arg input Input data pointer
25 // @arg len Input data size
26 // @arg padding Flag to append "=" on demand
27 std::string encodeString(const unsigned char* input, size_t len,