A method of secure communication in which communication partners (A, B) in each
case have a secret (S) and a public code (P), in which the communication partner
(A) selects a random number (x) and the communication partner (B) selects a random
number (y), in which a first partial code (Ax) is formed by the communication partner
(A) and a second partial code (By) is formed by the communication partner (B) by
using the public code (P) of the respective partner (B, A) and is transmitted to
the respective other communication partner (B, A). A session code (gxy,
gyx) is formed from the private random number (x, y), and the partial
code (By, Ax) of the respective communication partner (B, A) while using the private
secret code (S), the partial codes (Ax, By) and the session codes (gxy,
gyx) being calculated in a fashion similar to the Diffie-Hellmann protocol.