Merge MD5 and MD5Base64 into single implementation