Add a hash package.

This is for juju backups.
You could use bytes.Buffer here and avoid defining the fakeFile type completely.