You can drop `crypto` here and import `sha1` from `lib/hash`.