コード例 #1
0
def decrypt(message, e, c) :
	"""
	Method to decrypt incoming message using given public keys
	"""

	words = message.split(",");
	decrypted_data = "";
	for i in range(0, len(words)-1) :
		decrypted_data += str(miniRSA.decode(miniRSA.endecrypt(words[i], e, c)))
	return decrypted_data
コード例 #2
0
def decrypt(message, e, c):
    """
	Method to decrypt incoming message using given public keys
	"""

    words = message.split(",")
    decrypted_data = ""
    for i in range(0, len(words) - 1):
        decrypted_data += str(miniRSA.decode(miniRSA.endecrypt(words[i], e,
                                                               c)))
    return decrypted_data
コード例 #3
0
    def decrypt(self, buff):
        """
        Decrypts input integer list into sentences
        """

        words = buff.split(",")
        decrypted_data = ""
        # print words;
        # sys.exit();
        for i in range(0, len(words) - 1):
            decrypted_data += str(miniRSA.decode(miniRSA.endecrypt(words[i], self.public[0], self.public[1])))
        return decrypted_data