web analytics
Skip to primary content
Skip to secondary content

MemoSoup

Mix of the things I always forget

MemoSoup

Main menu

  • Home
  • About
  • Links

Tag Archives: md5

Unix: how to get md5 sum

Posted on 13/01/2011 by bigspoon
Reply

Here are the possibilities to calculate md5 sum:

(Linux): md5sum filename

(Solaris): digest -a md5 -v filename

Posted in Linux, Solaris | Tagged Linux, md5, solaris | Leave a reply

Perl: get file checksum

Posted on 08/06/2010 by bigspoon
Reply


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

Posted in Perl | Tagged checksum, file, md5, Perl | Leave a reply

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress