
9 Jun
2008
9 Jun
'08
5:43 p.m.
Hello Robert, RR> Hmmm - I wasn't aware that base64 had a "principle" that output RR> length is a multiple of 4 bytes. Well, I doubt that it is fundamental, more likely the fundamental is to notify decoder that the rest of a stream should be padded with zeros when it encounters '=' sign at the end. But the consequence of it is definetly that base64 encoded length is multiple of 4. But anyway the point is that the code has a flaw at least since (padding > 2) is always false. Slava. -- -- Vyacheslav Andrejev -- System Architect, Optech International, Inc.