santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm O hEigeartaigh <>
Subject Base64 error?
Date Mon, 30 May 2016 10:30:24 GMT

I'm doing some testing with various BASE-64 implementations and I think
there's an error in the Santuario Base64 encoder to do with whitespace. If
so though it's been there a looong time without anyone noticing...

The BASE64 implementation is here:

In the "encode" method it's adding a newline character with:

encodedData[encodedIndex++] = 0xa;

However this is just "\n". The RFC defines a CRLF as "\r\n":

It looks like a bug...but would like some feedback from others more
familiar with the RFC.


Colm O hEigeartaigh

Talend Community Coder

View raw message