Skip to content

md5sum

general · scripts/general/md5sum.m

MD5SUM  MD5 digest of a file or character data (GNU / Octave-compatible).

  H = md5sum (FILENAME)
  H = md5sum (STR, TRUE)

  Returns a 32-character lower-case hex MD5 digest.  With one argument,
  FILENAME is read as binary.  With IS_STRING true, IN is hashed as a
  character / uint8 payload (not as a path).

  Matches system md5sum and MATLAB java.security.MessageDigest MD5 for the
  same bytes.  Uses Nexus __hash__ when available, else Java.