rule_hash()

Right now we only compute the hash and print it. We don't actually put
anything in the cache yet.