Encryption and Decryption

Click the "Start" button on the Server - observe the "Waiting for a connection" message at the top. Enter a message in the "Text" field near the bottom or leave the initial message alone. Click "Send text" button on the Client. The server shows the ciphertext for 2 seconds in the "Got" field, then shows the decrypted result in the "Got" field for 4 seconds. Then the server becomes ready to receive another connection.

Code:
    Server/Client    
    Encryption/decryption class