Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- postChkCalc = (str) ->
- chk = 0
- i = 0
- while i < str.length
- chk += str.charCodeAt(i)
- i++
- (chk & 0xFFFF).toString(16).pad('0', 4).toUpperCase()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement