Is this the correct way to create a one byte LRC
Posted: Wed Nov 18, 2009 8:14 pm
Thanks In Advance -
Is this the correct way to create a one byte LRC
Is this the correct way to create a one byte LRC
Code: Select all
function MyLRC(text)
local ret:=left(text,1),x
for x = 2 to len(text)
ret:=chr(nXor( asc(ret), Asc(substr(text,x,1) ) ) )
next
return ret