Based on the analysis of eavesdropping attacks on the three variants of the ping–pong protocol the estimations of information leakage depending on probability of attack detection are obtained. It is shown, that the information capacity and security of various variants of the ping–pong protocol are in the inverse proportion.