Print the *MD5* encryption value of a string. This java md5 example produces 128-bit hash or digest value using Message Digest functions update and digest methods, Message Digest update method internally calculates digest or hash value, digest method computes hash value by performing final operation such as padding.