Beispiel #1
0
def main():
   print "---Running Decryption Process---"
   
   encrypt.callLamda()
   encrypt.calMew()
   
   #Get all the encrypted votes stored
   getAllEncVotes()
   
   #Tally all the votes
   tallyVotes()
def main():
    print "---Running Decryption Process---"

    encrypt.callLamda()
    encrypt.calMew()

    #Get all the encrypted votes stored
    getAllEncVotes()

    #Tally all the votes
    tallyVotes()
Beispiel #3
0
def main():
    #Calculate the lamda and mew used for private key
    encrypt.callLamda()
    encrypt.calMew()

    #Determine if the person can vote
    if (getVoterID()):
        vote = getVote()
        encVote = encrypt.encryptVote(vote)

        #Store the vote
        saveEncVote(encVote)
def main():
   #Calculate the lamda and mew used for private key
   encrypt.callLamda()
   encrypt.calMew()
   
   #Determine if the person can vote
   if (getVoterID()):
      vote = getVote()
      encVote = encrypt.encryptVote(vote)
      
      #Store the vote
      saveEncVote(encVote)