RosettaCodeData/Task/CRC-32/Lingo/crc-32-1.lingo
2023-07-01 13:44:08 -04:00

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"