Refactored md5_sum (lines 17 - 22)