Bugtraq mailing list archives
Re: base64
From: "Lothar Kimmeringer" <bugtraq () kimmeringer de>
Date: Tue, 23 Sep 2003 20:10:36 +0200
On Tue, 23 Sep 2003 12:18:31 -0400 (EDT), Birl wrote:
Excuse my ignorance. I tried to pook around some B64 attachements in my email files for an answer. Are you stating that an = 1) should not appear in B64 at all 2) should not appear in the middle of a line, but only at the EOLN 3) should only appear at the end of a B64 file
See the corresponding RFC. The number of characters in a base64-coded text must be a multiply of 4. So ='s are used if there aren't enough characters and are added at the end of the text. = is not a valid character inside Base64 and an encoder should stop with an error or stops decoding.
Answering that question could help me better determine how to write a procmail filter for this.
/.*=[^=]/ (untested) Regards, Lothar -- Lothar Kimmeringer E-Mail: mailbody () kimmeringer de PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81) Always remember: The answer is forty-two, there can only be wrong questions!
Current thread:
- base64 Ilya Teterin (Sep 22)
- Re: base64 Bennett Todd (Sep 22)
- Re: base64 Erwan David (Sep 23)
- Re: base64 Birl (Sep 23)
- Re: base64 Lothar Kimmeringer (Sep 24)
- Re: base64 David Wilson (Sep 24)
- Re: base64 Earl Hood (Sep 25)
- Re: base64 Christian Vogel (Sep 25)
- Re: base64 Seth Breidbart (Sep 24)
- Re: base64 Lothar Kimmeringer (Sep 24)
- Re: base64 Alexander Ogol (Sep 23)
- Re: base64 Christian Vogel (Sep 24)
- Re: base64 David Wilson (Sep 24)
- Re: base64 der Mouse (Sep 24)
- Re: base64 Christian Vogel (Sep 24)
- Re: base64 Earl Hood (Sep 26)
- <Possible follow-ups>
- RE: base64 latte (Sep 23)