GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DIGEST::MANBERHASH (3)

.ds Aq ’

NAME

Digest::ManberHash - a Perl package to calculate Manber Hashes

CONTENTS

SYNOPSIS



  use Digest::ManberHash;
 
  $instance = Digest::ManberHash::new($maskbits, $prime, $charcount);

  $hash1 = $instance->DoHash($filename1);
  $hash2 = $instance->DoHash($filename2);

  $similarity = $instance->Compare($hash1, $hash2);



DESCRIPTION

    Initialization

Use Digest::ManberHash::new. Parameters:
maskbits range 1 .. 30, default 11.
prime range 3 .. 65537, default 7.
charcount range 8 .. 32768, default 64.
For a detailed description please read http://citeseer.nj.nec.com/manber94finding.html.

    Calculating hashes



  $hash = $instance->DoHash($filename);



This gives an object, which has an hash of hash values stored within.

    Comparing hashes



  $similarity = $instance->Compare($hash1, $hash2);



This gives an value of 0.0 .. 1.0, depending on the similariness. Help wanted: The calculation could do better than now!!

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MANBERHASH (3) 2004-03-11

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.