Abstract
Key exchange algorithms such as the Diffie-Hellman method are used to determine a common secret key which will be used in symmetric key algorithms in cryptography. In this paper, we give a key exchange algorithm which includes some steps of Diffie-Hellman method by using algorithms of the topological basic concepts such as subbase, base and topology.