replace obsolete functions regarding crypto:sha