I think there is a DES cipher in the openssl api. Unfornutately, this
is not well documented.Check openssl ruby-stdlib documentation.
which you can find at
http://technorama.net/~oss/ruby/openssl/doc/
If you google around you should be able to find some reasonable
examples.
Look at the code towards the end of this post:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/245284
Regards,
Brian.