Advertisement
Guest User

Untitled

a guest
Feb 13th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. postChkCalc = (str) ->
  2. chk = 0
  3. i = 0
  4. while i < str.length
  5. chk += str.charCodeAt(i)
  6. i++
  7. (chk & 0xFFFF).toString(16).pad('0', 4).toUpperCase()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement