> % ruby -ropenssl -e 'puts OpenSSL::Digest::MD4.hexdigest("foo")'
> 0ac6700c491d70fb8650940b1ca1e4b2

tnx.

i needed it to calculate ed2k links from console.

---
require 'openssl'

$*.each{|f|
  puts "ed2k://|file|#{File.basename(f)}|#{File.size(f)}|
#{OpenSSL::Digest::MD4.hexdigest(File.read(f))}|"
}



-- 
>here are more things in heaven and earth,
horatio, than are dreamt of in your philosophy.