The document presents a comparative analysis of the traditional Diffie-Hellman algorithm and an advanced version aimed at enhancing security during key exchange processes. The proposed advanced algorithm incorporates additional mathematical operations to complicate attacks and protect the confidentiality of secret keys. This research highlights potential improvements in the security measures associated with Diffie-Hellman key exchanges in communication systems.