If these hash functions will only ever be used for rsync, they can go in rsync.js.