Add a hash package.

This is for juju backups.
If you removed the fakeFile type as suggested, you could replace it with an errorWriter type
that just returned an error on Write.

    type errorWriter struct {
        err error
    }

    func (w *errorWriter) Write([]byte) (int, error) {
        return 0, w.err
    }

and use it here.