Hi
I am trying to create a script to return the MD5sum of a .exe or .zip .txt etc . I am getting a value returned but it does not correspond to what an off the shelf md5sum calculators returns. Thanks in advance for your help.
.G
#! c:\\Perl\\bin\\Perl.exe use Digest::MD5 qw(md5_hex); open(FILE, "logs.txt"); my $file = <FILE>; binmode(FILE); $md5_hex = Digest::MD5->new->addfile(*FILE)->hexdigest; close(FILE); print "MD5: " . $md5_hex . "\n";
In reply to MD5 hex calculation by BigGer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |