From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5453 invoked from network); 15 Sep 2006 01:49:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 Sep 2006 01:49:52 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 56226 invoked from network); 15 Sep 2006 01:49:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Sep 2006 01:49:46 -0000 Received: (qmail 15937 invoked by alias); 15 Sep 2006 01:49:38 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10717 Received: (qmail 15927 invoked from network); 15 Sep 2006 01:49:37 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 Sep 2006 01:49:37 -0000 Received: (qmail 55099 invoked from network); 15 Sep 2006 01:49:37 -0000 Received: from s1tank.virtdom.com (216.240.101.50) by a.mx.sunsite.dk with SMTP; 15 Sep 2006 01:49:36 -0000 Received: (qmail 49718 invoked by uid 89); 15 Sep 2006 02:45:12 -0000 Received: from static-72-76-44-42.nwrknj.fios.verizon.net (HELO venti) (brian@aljex.com@72.76.44.42) by s1tank.virtdom.com with SMTP; 15 Sep 2006 02:45:12 -0000 Message-ID: <019b01c6d869$30d99790$6c00000a@venti> From: "Brian K. White" To: References: <20060912150813.GA4937@ulpmm.u-strasbg.fr> <060912182718.ZM24284@torch.brasslantern.com> <20060913150818.GA9450@ulpmm.u-strasbg.fr> <03ba01c6d793$d3bd7110$6500000a@venti> <20060914145038.GC13332@ulpmm.u-strasbg.fr> Subject: Re: base64 coding for zsh ? Date: Thu, 14 Sep 2006 21:49:06 -0400 Organization: Aljex Software MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 ----- Original Message ----- From: "Marc Chantreux" To: Sent: Thursday, September 14, 2006 10:50 AM Subject: Re: base64 coding for zsh ? le 13/09/2006, Brian K. White nous crivait : > Sent: Wednesday, September 13, 2006 11:08 AM > alias B64enc='openssl base64' > alias B64dec='openssl base64 -d' > > I've been using the stand-alone: > http://www.fourmilab.ch/webtools/base64/ > > I never realised I already had it in openssl. > Thanks for the tip. I didn't know that before yesterday but it was a bad idea in fact : openssl base64 doesn't handle utf8 encoded content. So i found recode command. finaly : alias b64dec='recode b64..data' alias b64enc='recode data..b64' benches are welcome ;) --------- Not good but not horrible. Consistently slower than everything else but only microscopically. Even though it's the slowest of all, you still have to call it "fast". nj4:~ # time recode data..b64 /dev/null real 0m0.086s user 0m0.080s sys 0m0.008s nj4:~ # Brian K. White -- brian@aljex.com -- http://www.aljex.com/bkw/ +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!