You need `require 'digest/sha1'` to use that