Ruby
Ruby
Example: Crypt2.CrcFile method
Demonstrates how to call the CrcFile method.Chilkat Ruby Downloads
require 'chilkat'
crypt = Chilkat::CkCrypt2.new()
filePath = "c:/temp/someFile.dat"
crc32 = crypt.CrcFile("crc-32",filePath)
print crc32.to_s() + "\n";
crc8 = crypt.CrcFile("crc8",filePath)
print crc8.to_s() + "\n";