daily pastebin goal
88%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 131 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top