A wireless lock and key system using an encryption key pair. When a lock
senses a person nearby, the random signal is generated. The key encrypts
the signal and returns it to the lock. The lock decrypts the signal and
compares it to the original to determine if the lock should be opened.
The key may generate temporary tickets for guests to open the lock for
limited times.