コード例 #1
0
ファイル: decrypt.py プロジェクト: ASPang/cis4110a4
def main():
   print "---Running Decryption Process---"
   
   encrypt.callLamda()
   encrypt.calMew()
   
   #Get all the encrypted votes stored
   getAllEncVotes()
   
   #Tally all the votes
   tallyVotes()
コード例 #2
0
def main():
    print "---Running Decryption Process---"

    encrypt.callLamda()
    encrypt.calMew()

    #Get all the encrypted votes stored
    getAllEncVotes()

    #Tally all the votes
    tallyVotes()
コード例 #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)
コード例 #4
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)