|
Boost : |
From: Vyacheslav E. Andrejev (mortituris_at_[hidden])
Date: 2008-06-09 13:43:31
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk