Publisher review:Taking the MD5 of a binary file allows you to get the MD5 hash of a file in Ruby. Taking the MD5 of a binary file allows you to get the MD5 hash of a file in Ruby.
If you're on a DOS/Windows system and you simply read in the file and pump it through the Digester, things that look like carriage control may not become part of your hash and your MD5 will be incorrect.
For example, if you use either File or IO class methods, it might appear to work but you would be oh-so-sad because it really didn't. Imagine taking the MD5 of a Unix shared library, say, libthingy.so.
Taking the MD5 of a binary file is a Ruby script for Internet, Browsers and Tools scripts design by Two Grunts.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Taking the MD5 of a binary file allows you to get the MD5 hash of a file in Ruby.
Operating system:Windows / Linux / Mac OS / BSD / Solaris