Sample code for 30+ languages & platforms
Lua

Example: Crypt2.CrcFile method

Demonstrates how to call the CrcFile method.

Chilkat Lua Downloads

Lua
local chilkat = require("chilkat")

local crypt = chilkat.Crypt2.new()

local filePath = "c:/temp/someFile.dat"

local crc32 = crypt:crc_file("crc-32", filePath)
print(crc32)

local crc8 = crypt:crc_file("crc8", filePath)
print(crc8)