Currently Being ModeratedNov 10, 2012 12:01 AM (in response to MidnightJedi)
I don't know of any pre-existing solution to your question, but it isn't hard to write one:
set theFolder to (choose folder)
tell application "System Events"
set subfolders to every folder of theFolder
repeat with eachFolder in subfolders
set fPath to (POSIX path of eachFolder)
set fName to name of eachFolder
set md5Filename to quoted form of (fName & ".md5")
do shell script "cd " & quoted form of fPath & "; /sbin/md5 * > " & md5Filename
The idea here is that it asks for a folder to process. It then grabs a list of all the folders inside that folder (subfolders), then for each subfolder it extracts its POSIX path and the folder name, then it builds a shell command that actually goes to each folder, runs the md5 command (passing in all files), writing the output to a .md5 file named according to the folder.
Currently Being ModeratedNov 10, 2012 9:55 AM (in response to Camelot)
Your exact requirements are not something I'd expect to see a standard script for. But for directories of files, or if you're writing a script, this is pretty easy. (Though unlike Camelot, I would not use AppleScript for this task. bash would likely be the local choice.)
And if changes are permissible, rsync is a common choice.
The md5 cryptographic hash is known to be weak, FWIW. It's good for testing against (or for) basic file corruptions and network transmission errors, but it's no longer appropriate for targeted attacks or security-sensitive activities. Use a SHA hash, if this is at all involving security.
And FWIW, the openssl command-line utility provides various digests including md5 and SHA digests.