Physical security and cryptography can learn from each other, part 11367:

Hotels wisely don't put the room number on guest keycards so if someone finds your card, they'd have to exhaustively search the hotel to find the room it opens.

Some hotels now have elevators programmed to only let you call the floor for which your keycard is coded, preventing guests from wandering to other floors.

But it also means the elevator can be used as an efficient oracle to determine the floor of a found key.

@mattblaze
They did that for office buildings too. You had to scan your card in he elevator and could only choose the floors you weer allowed on. Solution - ride the elevator till someone gets off on the floor you want.