Replace deprecated functions crypto:md5/1 and crypto:sha/1 with crypto:hash/2