Skip to content

Instantly share code, notes, and snippets.

@jezinka

jezinka/main.js Secret

Created June 16, 2017 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/66fdbca4537de04920fadb35e018cdbc to your computer and use it in GitHub Desktop.
Save jezinka/66fdbca4537de04920fadb35e018cdbc to your computer and use it in GitHub Desktop.
for (i = 0; i < instructions.length; i++) {
encrypted.push(instructions[i].substring(0, instructions[i].length - 10));
id.push(parseInt(instructions[i].substring(instructions[i].length - 10, instructions[i].length - 7))); // od razu zmiana na liczbę, żeby nie było problemu przy sumowaniu
checksum.push(instructions[i].substring(instructions[i].length - 6, instructions[i].length - 1))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment