This commit is contained in:
		@@ -13,7 +13,7 @@ from Crypto.PublicKey import RSA
 | 
				
			|||||||
from Crypto.PublicKey.RSA import RsaKey
 | 
					from Crypto.PublicKey.RSA import RsaKey
 | 
				
			||||||
 | 
					
 | 
				
			||||||
auth_logger = logging.getLogger('AUTH APPLICATION ')
 | 
					auth_logger = logging.getLogger('AUTH APPLICATION ')
 | 
				
			||||||
auth_logger.root.setLevel(logging.INFO)
 | 
					auth_logger.setLevel(logging.INFO)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Authetication:
 | 
					class Authetication:
 | 
				
			||||||
    ABSOLUTE_PATH = os.path.abspath(os.path.dirname(sys.argv[0]))
 | 
					    ABSOLUTE_PATH = os.path.abspath(os.path.dirname(sys.argv[0]))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -36,8 +36,8 @@ class NetWrapper:
 | 
				
			|||||||
        cipher = PKCS1_OAEP.new(self.currentClientPublicKey)
 | 
					        cipher = PKCS1_OAEP.new(self.currentClientPublicKey)
 | 
				
			||||||
        identMsg = json.dumps(
 | 
					        identMsg = json.dumps(
 | 
				
			||||||
            {'type': 'IDY', 'source': self.network.own_addr,
 | 
					            {'type': 'IDY', 'source': self.network.own_addr,
 | 
				
			||||||
             'message': b64encode(cipher.encrypt(retmsg.encode('UTF-8')))}).decode(
 | 
					             'message': b64encode(cipher.encrypt(retmsg.encode('UTF-8'))).decode('ASCII')}).encode(
 | 
				
			||||||
            'ASCII')
 | 
					            'UTF-8')
 | 
				
			||||||
        self.network.send_msg(self.clientAddr, identMsg)
 | 
					        self.network.send_msg(self.clientAddr, identMsg)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def sendMessage(self, message: bytes) -> None:
 | 
					    def sendMessage(self, message: bytes) -> None:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user