Add some error checking and use smaller buffers
Use shared key from entry box
Send data after authentication with session key