Extract MD5 hashing to a util func