Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

(String::CRC) Re: CRC-16 algorithm

by CMonster (Scribe)
on May 20, 2003 at 20:14 UTC ( [id://259564]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $crc16 = crc($message);
    print "CRC16 in decimal: $crc16\n";
    print "CRC16 in hex:\n  ", unpack('H*', pack('S', $crc16)), "\n";
    
  2. or download this
    cradcliff% ./crc16-modular.pl foo
    CRC16 in decimal: 1736882148
    ...
    CRC16 in decimal: 3375757723
    CRC16 in hex:
      f99b
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://259564]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-25 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found