Posted 02 October 2012 - 09:56 AM
Description
I created a doorlock which uses floppies as keycards.
It consists of a (<securitylevels> * <chars per level>) character long masterkey which is, length depending on the access level, partitially saved on the keycard; a program which checks the connected diskdrive for floppies and a program which creates those keycards.
The doorlock only can achieve maximum security if correct set up
- Only people with the right access rights get access to their level keycards
- The computer is only reachable from within (use a setup like this for example)
- Only the part of the masterkey which is also in the level keycard is saved on the doorlocks computer
The door needs a computer and a disk drive, in some cases a turtle will be better than a computer because of the smaller hitbox (i. e. when the door would be covering the disk drive and you can't retrieve the keycard from within). The checker should be run as startup or started in/after the startup. The (for lower levels trimed) masterkey must be on the same computer as the checker and the full masterkey aswell as the creator is required on the computer which is used to generate keycards.
Code
example key (5 Levels, 6 CPL):
Checker
http://pastebin.com/n9nL9iqE
http://pastebin.com/ntjhgfK7
Thanks to immibis for his help with string.sub()!
I created a doorlock which uses floppies as keycards.
It consists of a (<securitylevels> * <chars per level>) character long masterkey which is, length depending on the access level, partitially saved on the keycard; a program which checks the connected diskdrive for floppies and a program which creates those keycards.
The doorlock only can achieve maximum security if correct set up
- Only people with the right access rights get access to their level keycards
- The computer is only reachable from within (use a setup like this for example)
- Only the part of the masterkey which is also in the level keycard is saved on the doorlocks computer
The door needs a computer and a disk drive, in some cases a turtle will be better than a computer because of the smaller hitbox (i. e. when the door would be covering the disk drive and you can't retrieve the keycard from within). The checker should be run as startup or started in/after the startup. The (for lower levels trimed) masterkey must be on the same computer as the checker and the full masterkey aswell as the creator is required on the computer which is used to generate keycards.
Code
example key (5 Levels, 6 CPL):
NUahBwkQ8tyvgxy6UxFBsy4c4B4pWX
Checker
http://pastebin.com/n9nL9iqE
pastebin get n9nL9iqE keychecker
Creatorhttp://pastebin.com/ntjhgfK7
pastebin get ntjhgfK7 keycreator
Thanks to immibis for his help with string.sub()!