A generalization and simplification of a variant of parlliers public key cryptosystem with applications to electronic voting