file_hash is a little command line utility that takes an number of files and outputs their hashes. It is a fork of ed2k_hash (http://sourceforge.net/projects/ed2k-tools/). You can hash single files, multiple files, whole directories, or whole directory trees.