Dal Base64Ecoder Docs, la firma del costruttore è
Base64Encoder (BufferedTransformation *attachment=NULL, bool insertLineBreaks=true, int maxLineLength=72)
Quindi ottieni interruzioni di linea per impostazione predefinita nella stringa codificata. Per evitare questo, fai solo:
CryptoPP::StringSource ss(
in,
true,
new CryptoPP::Base64Encoder(
new CryptoPP::StringSink(encoded),
false
)
);