View Single Post
  #63  
Old 2020-02-20, 01:02 AM
Five's Avatar
Five Five is offline
 
Join Date: Oct 2004
Location: Canada
Re: The Validity of MD5 Checksums

People for a clearer Phish, 1999-11-28
Quote:
Originally Posted by Jeremy Clark
How to get the most out of Shorten and MD5
These instructions courtesy of Jeremy Clark. Thanks, Jeremy!
  1. Create a folder on your C: drive called "util"
  2. Create a folder on your C: drive called "burning"
  3. Make sure there are copies of Shortn32.exe, md5sum.exe, and shorten.ico in the "util" folder you created
  4. Create the following batch files in notepad and put them all in the "util" foler you created:

    cls
    lfnfor on
    for %%f in (*.shn) do c:\util\shortn32.exe -x %%f c:\burning\%%f.wav
    lfnfor off


    name this file "unshorten.bat"

    cls
    lfnfor on
    for %%f in (*.wav) do c:\util\shortn32.exe %%f c:\burning\%%f.shn
    lfnfor off


    name this file "shorten.bat"

    c:\util\md5sum --binary *.shn > > ~NameMe~.md5

    name this file "md5gen.bat"

    cls
    lfnfor on
    for %%f in (*.md5) do c:\util\md5sum.exe --check %%f
    lfnfor off


    name this file "checksum.bat"
  5. Open Windows Explorer and go to View>Options>File Types and click on "New Type" and enter into the Description of type field "Shorten file" and into the Associated extension field ".shn" Then click on "Change Icon" and browse to the files "shorten.ico" in the "util" folder you created.
  6. Create a "New..." action and call it "Extract". Put "c:\util\shortn32.exe" -x "%1" "%1.wav" (WITH the quotes) into the "application to perform action" field. Click on "Ok".
  7. Create a "New..." action and call it "Extract all". Under "application to perform action", browse to the file "unshorten.bat" you created. Click on "Ok".
  8. Create a "New..." action and call it "Generate MD5". Under "application to perform action", browse to the file "md5gen.bat" you created. Click on "Ok".
  9. Back in View>Options>File Types, again click on "New Type" and enter into the Description of type field "md5 checksum" and into the Associated extension field ".md5"
  10. Create a "New..." action and call it "check". Under "application to perform action", browse to the file "checksum.bat" you created. Click on "Ok".
  11. Find "Wave sound" (or something similar) on the list of registered file types and double click on it. Create a "New..." action and call it "Shorten all". Under "application to perform action", browse to the file "shorten.bat" you created. Click on "Ok".
  12. Create a "New..." action and call it "Shorten". Under "application to perform action", type "c:\util\shortn32.exe" "%1" "%1.shn" (WITH the quotes). Click on "Ok".

Ok, now your system is set up to do the following:
  1. Right click on a .shn file on a CDROM disc (or anywhere for that matter) and choose "Extract all". All the shorten files in the current directory will be sequentially extracted into .wav files in the c:\burning directory.
  2. Right click on a .shn file in a directory and choose "Generate MD5". A file called "~NameMe~.md5" will be created in the c:\burning directory. Rename the file appropriately.
  3. Right click on an .md5 file in a directory and choose "check". A DOS window will open and md5sum will sequentially verify that all the .shn files in the directory match the .md5 file.
  4. Simply double-click on any .shn file anywhere and it will decompress to a .wav file.
  5. Right click on a .wav file and choose "Shorten". A .shn file will be created in the same directory.

I hope all this helps!
__________________
Checksums Demystified | ask for help in Technobabble

thetradersden.org | ttd recommended free software/freeware webring
shntool tlh eac foobar2000 spek audacity cdwave vlc

Quote:
Originally posted by oxymoron
Here you are in a place of permanent madness, be careful!
Reply With Quote Reply with Nested Quotes