simple encrypting server implementation