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