Implement Secure Data Transfer

implementationChallenge

Prompt Content

Extend your client-server application to securely exchange arbitrary data after the handshake is complete. Use the established symmetric session key to encrypt and decrypt messages, ensuring confidentiality. Implement message authentication codes (MACs) or authenticated encryption (e.g., AES-GCM) to guarantee data integrity and authenticity. Simulate a noisy channel by introducing occasional packet loss or reordering to test robustness.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations