Todd Benson
8/3/2008 6:32:00 AM
On Sun, Aug 3, 2008 at 12:19 AM, Ruby Facet <sechelon@ymail.com> 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