I've given up on the search files utility as I can't get it to work.
I have an MD5 hash perl tool
It currently allows the user to input two file aths and it then displays the md5 hash of each file...
as it merely displays the path, I was wondering if it's possible to tell the user if there are differences or if they are the same
Here is the code:
use digest::MD5; print "\nPlease enter filepath and name (including file extension) of +the first file you would like to compare:\n\n"; $fileone = <STDIN>; chomp $fileone; print "\n\n"; print "\nPlease enter filepath and name (including file extension) of +the first file you would like to compare:\n\n"; $filetwo = <STDIN>; chomp $filetwo; print "\n\n"; open (FILE, $fileone) or print "File invalid, Please try again."; print "The MD5 hash of file one is: "; $md5a = Digest::MD5->new->addfile(*FILE)->clone->hexdigest; print "$md5a\n\n"; open (FILE, $filetwo) or print "File invalid, Please try again."; print "The MD5 hash of file two is: "; $md5b = Digest::MD5->new->addfile(*FILE)->clone->hexdigest; print "$md5b\n\n";
In reply to MD 5 hash comparison/checker by daggy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |