A client device is registered with a network server by having the network
server generate a key number and emit an optical representation of the
key number for optical reception by the client device. The client device
determines the key number from the received optical representation, and
encrypts or decrypts a communication using the key number, or a value
based on the key number. In one embodiment, the optical representation
may be either an infrared signal or visible light signal.