Last active
February 17, 2018 00:44
-
-
Save daviseford/edcaeefb5dc1deb65871fccc3d01f17d to your computer and use it in GitHub Desktop.
native-javascript-checksum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const checksum = (txt) => txt.split('').reduce((a, s, i) => a + (txt.charCodeAt(i) * (i + 1)), 0x12345678) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment