refactor Digest::MD5 call