Ar preserve hashes

reopen of https://github.com/attr-encrypted/attr_encrypted/pull/117