Fix call to crypto:sha/1. Use crypto:hash/2 instead.