Please try the following: static const byte myAlphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
Base32Encoder enc; enc.Initialize(MakeParameters(Name::EncodingLookupArray(), (const byte *)myAlphabet, false)); // use enc here static int decodingArray[256]; Base32Decoder::InitializeDecodingLookupArray(decodingArray, myAlphabet, 32, true); Base32Decoder dec; dec.Initialize(MakeParameters(Name::DecodingLookupArray(), (const int *)decodingArray, false)); // use dec here ----- Original Message ----- From: "kan" <[EMAIL PROTECTED]> To: "Crypto++ Users" <[EMAIL PROTECTED]> Sent: Monday, February 05, 2007 11:56 PM Subject: Re: Base 32 alphabet > > On Feb 5, 2:43 pm, "Jeffrey Walton" <[EMAIL PROTECTED]> wrote: > >> http://www.cryptopp.com/docs/ref/base32_8h-source.html > Beg pardon? > I've seen that file. The encoder uses 1st alphabet, I need the 2nd, > otherwise it doesn't agree with some http://www.hmrc.gov.uk/ services. > It is very easy to change the alphabet in base32.cpp and compile own > library, but I don't see any problems to include the option into the > official library. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [EMAIL PROTECTED] More information about Crypto++ and this group is available at http://www.cryptopp.com. -~----------~----~----~----~------~----~------~--~---
