Help for this page

Select Code to Download


  1. or download this
    $ perl -e 'use Digest::MD5; print Digest::MD5->new->md5_hex("foobarbaz
    +")
    ,$/'
    ...
    +----------------------------------+
    | 6df23dc03f9b54cc38a0fc1483df6e21 |
    +----------------------------------+
    
  2. or download this
        use Digest::MD5;
        
    ...
        $md5->add('foo', 'bar');
        $md5->add('baz');
        $digest = $md5->hexdigest;
    
  3. or download this
    sub create_checksum {
    
    ...
        my $cs = $ctx->hexdigest();
        return $cs;
    }
    
  4. or download this
    $ perl -e 'use Digest::MD5; my $x= Digest::MD5->new; $x->add("foobarba
    +z"); 
    print $x->hexdigest,$/'
    6df23dc03f9b54cc38a0fc1483df6e21