md5sum in Ruby
Nov 30th 2009trentgMiskellaneous
My web host does not have an md5 sum program that I could find on their server, so I needed to find a script to do it for me. I found this site which had a program that looked good at a quick glance. Only problem with it was that it tries to read the whole file into memory before performing the md5 hash.
This was a problem because the file I wanted to verify was about 5GB in size. So, not knowing any Ruby beforehand, I hacked the above script into the 9 liner below. It is useful to me for checking that my backups of my web hosting are correct after I download them. It is, however, very slow!
md5.rbLeave a Reply
You must be logged in to post a comment.