daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 128 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
Top