the thing is that we could achieve much higher security by having a real time clock on the control unit to verify the key before opening the locker. The thing that I am trying to protect against is a "replay" attack, where someone overhears the communication and repeats it.