use another hash function if MD5 is not available