http://www22.big.or.jp/~qul/program/text/route004.html
http://homepage2.nifty.com/hibara/software/bf_smple.htm
あたりが参考になる。
http://www.schneier.com/blowfish-download.html
に実装がある。