What are the best practices for securing a C++ Voting Program?