web analytics

Unix: how to get md5 sum

Here are the possibilities to calculate md5 sum:

(Linux): md5sum filename

(Solaris): digest -a md5 -v filename

Perl: get file checksum

use Digest::MD5; use IO::File; my $chk = Digest::MD5->new(); foreach my $file (@ARGV) {     $chk->addfile(IO::File->new($file));     print "$file -> ",$chk->hexdigest,"\n"; }

The additional details could be found on IBM site