MD5 Message Digest

md5(byte[] array {, int offset , int length } )
or
(InputStream input) or
(String string)

When a byte array is specified, it calculates a MD5 value of a portion of the array. When an InputStream or a String is specified, it reads from the input or string to calculate the MD5 value.

md5() returns a byte array of 16 bytes. This can be converted to an integer as follows.

e.g.
array = md5(open(file))

import("java.math.*")
BigInteger(array)

Back