client authentication

70 views
Skip to first unread message

Alex Sandro

unread,
Mar 8, 2016, 10:46:51 AM3/8/16
to rpyc
I need to send a md5 hash  of client to server, and the server authenticate this md5 hash.

Server authenticator

hexdata = hashlib.md5("asdf").hexdigest()


def authenticator(sock):
    data = sock.recv(32)
   
if  data != hexdata :
        raise AuthenticationError("unknown source client!")
   
return sock, hexdata


Client connection - How to pass the hash to the server ?
conn = connect(host, port)

How to do this ?

Alex Sandro

unread,
Mar 8, 2016, 4:44:58 PM3/8/16
to rpyc
I found the answer the hard way but I managed do what I needed.

Project with client|server
Reply all
Reply to author
Forward
0 new messages