Use a MAC instead of a hash. Closes #4.