replace obsolete functions regarding crypto:md5