lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On Jun 14, 2006, at 16:25, Imrahil wrote:

hi everybuddy. does anyone know how to do a calculate a CRC fo a block of
binary data using lua ??

Milano Carvalho posted an handy CRC32 module a while back:

http://lua-users.org/lists/lua-l/2005-02/msg00232.html

E.g.:

local crc = require( "crc" )

print( crc.calc( "abc" ) )

> 2608022668

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/