Replace Digest::SHA1 with Digest::SHA, see #168