/lua_crc32

crc32 for lua

Primary LanguageLua

CRC32 for Lua

Usage:

        local crc32 = require("crc32")
        local str = "helloworld"
        -- hashcode = crc32.hash(str)
        -- hashcode = crc32.hash(str, #str)
        local seed = os.time()
        hashcode = crc32.hash(str, #str, seed)
        -- ...