A method and system is provided which generates and uses authentication
codes so that when one device is connected to another device, the devices
can only communicate with one another. The method and system preferably
counts the number of times the devices have successfully communicated as
part of the authentication process.