Auto-detect Digest::SHA or Digest::SHA1

closes #1
closes #2