Multicasting chat with encryption (ECDH P-256 + AES-256-CBC)
Few years ago I published simple Python sample code for the multicasting chat, and this article is a long overdue follow-up that takes that sample to a completely new level. Current IT industry is unimaginable without cybersecurity features, and trends like "zero-trust" rely on complicated crypto algorithms which could be quite overwhelming for beginners. The example C++ code I’ve published could help you to get the ideas and code snippets for your own projects. The full source code is available on Gitlab . DISCLAIMER The code is provided as is, and has issues (including code duplication) as it mostly serves as an education project, not the production-ready code that could benefit from the proper class hierarchies, edge cases handling and better code coverage. First, let’s review the main phases of the application: Parse command line options ( -v - verbose output, -e - apply encryption) Generate EC (elliptic curve, NIST P-256 in the code) k...