Movatterモバイル変換


[0]ホーム

URL:


 / 
Digest-CRC-0.24
River stage three • 20 direct dependents • 338 total dependents
/Digest::CRC

NAME

Digest::CRC - Generic CRC functions

SYNOPSIS

# Functional styleuse Digest::CRC qw(crc64 crc32 crc16 crcccitt crc crc8 crcopenpgparmor);$crc = crc64("123456789");$crc = crc32("123456789");$crc = crc16("123456789");$crc = crcccitt("123456789");$crc = crc8("123456789");$crc = crcopenpgparmor("123456789");$crc = crc($input,$width,$init,$xorout,$refout,$poly,$refin,$cont);# add data to existing$crc = crc32("ABCD", $crc);# OO styleuse Digest::CRC;$ctx = Digest::CRC->new(type=>"crc16");$ctx = Digest::CRC->new(width=>16, init=>0x2345, xorout=>0x0000,                         refout=>1, poly=>0x8005, refin=>1, cont=>1);$ctx->add($data);$ctx->addfile(*FILE);$digest = $ctx->digest;$digest = $ctx->hexdigest;$digest = $ctx->b64digest;

DESCRIPTION

TheDigest::CRC module calculates CRC sums of all sorts. It contains wrapper functions with the correct parameters for CRC-CCITT, CRC-16, CRC-32 and CRC-64, as well as the CRC used in OpenPGP's ASCII-armored checksum.

SEE ALSO

https://tools.ietf.org/html/rfc4880#section-6

AUTHOR

Oliver Maul, oli@42.nu

COPYRIGHT

CRC algorithm code taken from "A PAINLESS GUIDE TO CRC ERROR DETECTION ALGORITHMS".

The author of this package disclaims all copyrights and releases it into the public domain.

Module Install Instructions

To install Digest::CRC, copy and paste the appropriate command in to your terminal.

cpanm

cpanm Digest::CRC

CPAN shell

perl -MCPAN -e shellinstall Digest::CRC

For more information on module installation, please visitthe detailed CPAN module installation guide.

Keyboard Shortcuts

Global
sFocus search bar
?Bring up this help dialog
GitHub
gpGo to pull requests
gigo to github issues (only if github is preferred repository)
POD
gaGo to author
gcGo to changes
giGo to issues
gdGo to dist
grGo to repository/SCM
gsGo to source
gbGo to file browse
Search terms
module: (e.g.module:Plugin)
distribution: (e.g.distribution:Dancer auth)
author: (e.g.author:SONGMU Redis)
version: (e.g.version:1.00)

[8]ページ先頭

©2009-2025 Movatter.jp