Guest User

Untitled

a guest
Jul 17th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. proc checksum {msg} {
  2. binary scan $msg c* msgCharList
  3. set pre_checksum 0
  4. foreach charcode $msgCharList {
  5. set pre_checksum [expr $charcode ^ $pre_checksum]
  6. }
  7. return [GetHex $pre_checksum 8]
  8. }
Add Comment
Please, Sign In to add comment