9 lines
234 B
Text
9 lines
234 B
Text
crcObj = script("CRC").new()
|
|
|
|
crc32 = crcObj.crc32("The quick brown fox jumps over the lazy dog")
|
|
|
|
put crc32
|
|
-- <ByteArrayObject length = 4 ByteArray = 0x41, 0x4f, 0xa3, 0x39 >
|
|
|
|
put crc32.toHexString(1, crc32.length)
|
|
-- "41 4f a3 39"
|