Got client side authentication working, generates random string and sends to server, creates key.txt to hold it if it doesnt exist, if key.txt exists reads from that file and sends that string to the server