Hi everybody
i want write a checksum function using python but i cant ..
#example
#find the checksum of string_data
string_data="0123456789abcdef"
cksum=checksum(string_data)
the checksum will be
sum of 01+23+45+...+ef (adding each byte)
then
next result = ~result
and finally
result = result+1
def checksum(data):
..........
return result
my main problem is the addition
what should i do ??
thanks