A simple CRC32 library.
This CRC32 library is based on KHMan's SciTELuaExporters, all credits should go to him for implementing CRC32 in lua. I've taken his code and converted the format into WoW Lua style.
0.3 BC 2.0 compatible version.
0.2 Changed the crc function to always return a decimal value, instead of a binary string, since it's more efficient.
The library works in two modes.
Standalone by extracting the archive as an addon.
Embedded by extracting the .lua file into your own addon and adding the file to toc/xml for loading.
CRCLib.crc: return the crc of a specified buffer, as a decimal value
crc = CRCLib.crc(data)