fix md5 fn
fix byte to hex conversion for md5/sha1