From: Todd Benson Date: 2008-08-03T15:32:24+09:00 Subject: Re: alphanumeric encrypt/decrypt On Sun, Aug 3, 2008 at 12:19 AM, Ruby Facet wrote: > Hello, > > Is there an encryption (decryption) routine that will return only > alphanumeric characters? Looking forward to your help. > > RF s = 'aoa3(;12)>,$!' [s].pack('m').chomp => "YW9hMyg71mwyKT4sJC=" I haven't read the RFC for base64, but it looks like you would then need to allow the '=' symbol along with letters and numbers, but no other special characters besides that. Perhaps '=' is a padding character. cheers, Todd