From: Gregory Brown Date: 2008-08-03T14:29:00+09:00 Subject: Re: alphanumeric encrypt/decrypt On Sun, Aug 3, 2008 at 1:19 AM, Ruby Facet wrote: > Hello, > > Is there an encryption (decryption) routine that will return only > alphanumeric characters? Looking forward to your help. You could take any old routine and pack / unpack it as hex. Would that do the trick? >> unpacked = "non-alpha numeric stuff: ^#%# foas".unpack("H*") => ["6e6f6e2d616c706861206e756d657269632073747566663a205e23252320666f6173"] >> unpacked.pack("H*") => "non-alpha numeric stuff: ^#%# foas" -greg -- Killer Ruby PDF Generation named after a magnificent sea creature: http://github.com/sandal/prawn | Non-tech stuff at: http://metametta.blogspot.com