There is a pure perl version of MD5 (Digest::Perl::MD5). As an aside, Paul Graham isn't the author. (I thought so too at first glance) Though he was the first person I saw to suggest using Bayesian filters. The author of Popfile is John Graham-Cumming.