Hi, I noticed that Base64URLDecoder exists but unfortunately, I am stuck with 5.6.2, which doesn't have it.
So I followed the recommendation on https://www.cryptopp.com/wiki/Base64Decoder (Changing Alphabets section): // my code snippet std::string decoded_key; const byte ALPHABET[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; int lookup[256]; CryptoPP::Base64Decoder::InitializeDecodingLookupArray(lookup, ALPHABET, 64, false); try { CryptoPP::Base64Decoder* pDecoder = new CryptoPP::Base64Decoder(); pDecoder->IsolatedInitialize(CryptoPP::MakeParameters(CryptoPP::Name::DecodingLookupArray(),(const int *)lookup)); pDecoder->Attach(new CryptoPP::StringSink(decoded_key)); // Decode the key since it is base64url encoded CryptoPP::StringSource src(key, true, pDecoder); But then I got an exception: AlgorithmParametersBase: parameter "DecodingLookupArray" not used Am I missing something? Thanks in advance! -- You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
