• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 419
  • Last Modified:

Checksum

Hallo !!
Can some one please tell me how to calculate the checksum for this protocol ??

String:
<ENQ><SOH>S,PRG,TRN,000888,,,MX,<ETB>

Checksum:
=160

tfsystem
0
tfsystem
Asked:
tfsystem
1 Solution
 
gregoryyoungCommented:
well given only a single piece of data this is impossible as it could be doing many things

example 1 + 2 + 3 = 6 (so you could assume that the algorithm is addition) ... well 1 * 2 * 3 is also 6 so which one is it?!

I am going to take a wager here and say the checksum is probably the ascii values of the data added up together modulus 256 (just a guess) or added up + modulus 256 then a number conditionally added to prevent using special chars.

Greg
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now