CRC-32: Difference between revisions

Content added Content deleted
Line 2,849: Line 2,849:
r=r1 xor crctbl((asc(mid(buf,i,1))xor r) and 255)
r=r1 xor crctbl((asc(mid(buf,i,1))xor r) and 255)
next
next
crc32=hex(r xor &hffffffff)
crc32=r xor &hffffffff
end function
end function


Line 2,855: Line 2,855:
'414FA339
'414FA339
gencrctable
gencrctable
wscript.stdout.writeline crc32("The quick brown fox jumps over the lazy dog")
wscript.stdout.writeline hex(crc32("The quick brown fox jumps over the lazy dog"))
</lang>
</lang>
Output
Output