hacker-proof algorithm