I am trying to encode this string "1acc64e9510c32ce8e34" into base32 
lowercase
what i'm supposed to get is dlggj2krbqzm5dru
but what I get is DMGGJ4KTBS3N7DTW 

boost::algorithm::to_lower(decoded2);
std::cout<<"Decoded hex:"<<decoded2<<std::endl;
boost::algorithm::erase_all(decoded2,"\n");
StringSource ss( decoded2, true,

new Base32Encoder(
new StringSink(hash_sink)
) // Base64Decoder
); // StringSource
std::cout<<"encoded raw:"<<hash_sink<<std::endl;




-- 
-- 
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.
--- 
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.

Reply via email to