43 static char const* c_alphabet =
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
46 for (; a > 0; a /= 36)
48 unsigned r = (unsigned)(a - a / 36 * 36);
49 ret = c_alphabet[r] + ret;
58 ret = ret * 36 + (
c <
'A' ?
c -
'0' : (
c -
'A' + 10));
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< N *8, N *8, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void >> Arith
The corresponding arithmetic type.
FixedHash< N > fromBase36(std::string const &_h)
std::vector< byte > bytes
vector_ref< byte const > bytesConstRef
Fixed-size raw-byte array container type, with an API optimised for storing hashes.
std::string toBase64(bytesConstRef _in)
bytes fromBase64(std::string const &_in)
std::string toBase36(FixedHash< N > const &_h)