Posted 05 July 2014 - 09:03 AM
Hi,
I would like to introduce a password locked door system I constructed, that uses a seperate file called usrpass to store user credentials so that there may be multiple passwords for your door!
I came up with the idea after creating a small server, and found myself needing a secure way to get in and out of my base(My friends and I share a base) I then created this system. As with any password door in computercraft, it is easy to penetrate if you have a disk with a blank startup file on it. However, It allows for an infinite amount of users, a handy feature for those with many people who need access to an area. The system is easy to use, and requires no changes in the code to facilitate new users.
There are two files you need, usrpass, and the password door.
To download a usrpass example file, run
Edit this file, replacing "user" with your username and "1234" with your password. Following this structure you may add as many usernames and passwords as you want.
Next, to download the actual door lock, run
I have also designed a server for logging entries in the door. To download, run
By default, the lock sends info to the computer ID 2, you may change this in the bottom of the code.
By default, the server uses a modem on the left side, although this can be changed in the code in the variable "mside".
By Default, the door lock uses a modem attached to the back of the computer, although you can change this in the code with the variable "mside". Change it to whatever side you have your modem on.
Please report any errors or bugs on this thread.
Thanks,
Spartan_MiniMe
I would like to introduce a password locked door system I constructed, that uses a seperate file called usrpass to store user credentials so that there may be multiple passwords for your door!
I came up with the idea after creating a small server, and found myself needing a secure way to get in and out of my base(My friends and I share a base) I then created this system. As with any password door in computercraft, it is easy to penetrate if you have a disk with a blank startup file on it. However, It allows for an infinite amount of users, a handy feature for those with many people who need access to an area. The system is easy to use, and requires no changes in the code to facilitate new users.
There are two files you need, usrpass, and the password door.
To download a usrpass example file, run
pastebin get 7sCNkKqx usrpass
Edit this file, replacing "user" with your username and "1234" with your password. Following this structure you may add as many usernames and passwords as you want.
Next, to download the actual door lock, run
pastebin get HZynNW2n startup
I have also designed a server for logging entries in the door. To download, run
pastebin get VpusJF4A startup
By default, the lock sends info to the computer ID 2, you may change this in the bottom of the code.
By default, the server uses a modem on the left side, although this can be changed in the code in the variable "mside".
By Default, the door lock uses a modem attached to the back of the computer, although you can change this in the code with the variable "mside". Change it to whatever side you have your modem on.
Please report any errors or bugs on this thread.
Thanks,
Spartan_MiniMe