Implement Secure Data Transfer

implementationChallengeNovember 29, 2025

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.

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