blib/lib/Digest/Nilsimsa.pm

filter: Statementstmt 100% 5 / 5 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 5 / 5 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Nilsimsa.xs ↑ Summary
1 package Digest::Nilsimsa;
2  
3 1 require DynaLoader;
4  
5 1 $VERSION = 0.06;
6 1 @ISA = qw/DynaLoader/;
7  
8 1 bootstrap Digest::Nilsimsa $VERSION;
9  
10 =head1 NAME
11  
12 Digest::Nilsimsa - Perl version of Nilsimsa code
13  
14 =head1 SYNOPSIS
15  
16 use Digest::Nilsimsa;
17  
18 my $nilsimsa = Digest::Nilsimsa;
19  
20 my $digest = $nilsimsa->text2digest($text);
21  
22  
23 =head1 DESCRIPTION
24  
25 A nilsimsa signature is a statistic of n-gram occurance in a piece of
26 text. It is a 256 bit value usually represented in hex. This module is a
27 wrapper around nilsimsa implementation in C by cmeclax.
28  
29 =head1 METHODS
30  
31 =over 4
32  
33 =cut
34  
35 =item $nilsimsa->text2digest($text);
36  
37 Pass in any text, any size, and get back a digest string composed 64
38 hex chars.
39  
40 =back
41  
42 =head1 SEE ALSO
43  
44 http://ixazon.dynip.com/~cmeclax/nilsimsa.html
45  
46 =head1 AUTHOR
47  
48 Chad Norwood <chad@455scott.com>, cmeclax
49
50 =cut
51  
52 1 1;
53  
« Nilsimsa.xs ↑ Summary