fix deprecation warning: replace crypto:sha(... with crypto:hash(sha...