replace crypto:sha deprecated functions to crypto:hash dunctions