Paper ballots, in person, with ID.  Much harder to hack or cheat. Non networked counting systems with partisan observers from all sides involved to make sure no monkey business occurs. 

As for Russia or anyone else hacking an email system, perhaps the groups involved should think about not rigging the primary so that any information that is revealed would be meaningless.