My brother in law works for Hilton and writes the code for these things. I will ask him, and re-post.
Along these lines: Most hotels rarely ask for cards back. So, does the next person in that room get the same coded key? Do they assume/trust I won’t try to come back, or is the code different each time? - Jinx
How do the cards given to hotel staff differ? In the old days they would have a passkey that could open a set of rooms at a time. The card system appears to work the same way - at least I assume that housekeeping staff aren’t allowed to open every single room in the hotel - but the procedures described above don’t seem to allow for more than one room at a time.
Okay, here is the email from my brother in law. To be frank, I’m a bit disappionted, but hey, he’s off today.
As I said, he’s an engineer at Hilton, so I’m he knows. But I’d still like to hear from the doorlock guy.
I attended one hotel in Italy that had real-time active inquiries between the door locks, the elevators, and a central database. On one of our days there, they were having network problems at the computer running everything (a single workstation at the front desk) and were having to reboot every hour or two which left many guests (including us) randomly locked in and out of rooms.
Our routine was, if we were locked out, run up and down the stariwells looking for a cleaning person with a mechanical pass key to let us in.
Best hotel breakfast I’ve ever had in my life though So it was worth it.
Success!!
This is direct from the doorlock guy.
Damn, SuperNelson.
Throw us a bone or something. Help the thread along.
SuperNelson, miss elizabeth, you guys rock. Thanks for the fascinating information – I’ve always wondered how those things work. miss elizabeth, I hope you decide to become a permanent member here!
Its been some time since the last post in this thread but i would love to know one thing more in this regard…(of course so much must have evolved since the last post)
- Do soft keys operate to turn back deadbolts too or are locks on hotel doors always sash bolt type?
2)Is the emergency key also a key card that can turnback dead bolts? or is it always a mechanically used hard key?
One other thing that can deactivate these cards is a magnet of any sort. So that if you happen to have sunglasses that attach to your glasses via a magnet, which I do, and you happen to keep said sunglasses in your shirt pocket most of the time, which I do, then when you put your room key in your shirt pocket, which I do, you will often discover that your card has been deactivated.
I just did a short course on cryptography which covered at least one system, and it’s surprising mode of failure. I hope I can make it understandable.
It uses what is known as a Cryptographic Hash Function. A hash function is something which takes a number and produces an integer number from it within some specified range. Given the same input you will always produce the same hash value. A cryptographic hash function has the added feature that it is quite easy (with a simple computer) to produce the hash of a number, yet it is very hard to figure out, given the hash value, what number you started with. It is essentially a one-way function. With me so far?
When you set up a door lock you start with a random number N and hash it to give h[sub]1[/sub], that is hash(N) = h[sub]1[/sub]. You then take h[sub]1[/sub] and pass that through your hash function to get h[sub]2[/sub], i.e. hash(hash(N)) = h[sub]2[/sub]. You can repeat this a large number of times, say 1000 to give h[sub]1000[/sub]. Remember that finding h[sub]1000[/sub] from h[sub]999[/sub] is easy, but finding h[sub]999[/sub] from h[sub]1000[/sub] takes a very very long time. You need to store the complete chain of hash values on your central computer, but only the last in the chain, h[sub]1000[/sub], needs to be stored on the lock itself.
Along comes your first guest. Program the key card with h[sub]1000[/sub]. The door lock recognizes this and lets the guest enter the room. When it comes to give the room to the next guest you program that key card with the next earlier value in the hash chain, h[sub]999[/sub] in this case. Remember that this is a very hard value to work out given just the value stored on the first key card. When this is inserted into the lock, the lock can determine that it is not the value it is programmed with, so how does it know to let in guest 2? It takes the value from the card, h[sub]999[/sub], and hashes it to see if it matches h[sub]1000[/sub] - does hash(h[sub]unknown[/sub]) = h[sub]1000[/sub]? If it does then it can only be the next earlier hash in the chain. It is now safe for the lock to admit the guest and update itself with the new hash value. An old key with h[sub]1000[/sub] will now no longer work.
One unexpected failure mode occurs when a guest checks in, gets issued the preceding hash value in the chain, but never uses the key card. (One can only speculate what room they did sleep in :eek: ). The door lock never sees the new key value. Along comes another guest for that room, gets issued yet another value from the hash chain. When the lock sees this new value it performs the hash check - does hash(h[sub]unknown[/sub]) = last-used-value? No it does not! The chain has been broken!
Or if you happen to have bought a souvenir fridge magnet before checking in at the motel and still have it in your pocket, then put the keycard in there, you will have to go back to the front desk to have it rewritten. If you put the new card into the same pocket, you will have to go back a second time, which in turn will cause the cute front desk girl to treat you like some kind of moron. Don’t ask me how I know.