From: "Aaron D. Gifford" Date: 2010-03-07T15:24:55+09:00 Subject: Re: Base-64 encoding--Just for the fun of it! On Sat, Mar 6, 2010 at 4:31 PM, wrote: > Mine (1.9 only): > c=[*?A..?Z,*?a..?z,*?0..?9]*''+'+/' > > That's 23 characters. Gorgeous! > Mine: > (s.unpack("B*")[0]+'0'*((6-s.size*8%6)%6)).scan(/.{6}/).map{|e|c[e.to_i(2)]}*''+'='*((3-s.size%3)%3) Beautiful! I love learning new things every day, and you've provided plenty for me. Thanks for "golf" lessons. *smile* Aaron out.