Add a hash package.

This is for juju backups.
   var buf bytes.Buffer

would be slightly more usual here.