This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
bobmarley123456's profile picture

Simple Unhackable Computer Passcode Lock

Started by bobmarley123456, 19 January 2013 - 07:50 AM
bobmarley123456 #1
Posted 19 January 2013 - 08:50 AM
This is a simple passcode door lock:
  • The original password is poop
  • To install download it, go into your world file, into computer, into disk, find the number of the disk you are using and drag all the files into the disk file, done
  • This ^^^ can be done ingame
This is the code:


pullEvent =os.pullEventRaw
term.clear()
print("Password:")
password = read("*")
pass = "password"

if password == (pass) then
print("Welcome User")
sleep(2)
print("Have A Nice Day")
sleep(1)
else
print("Wrong Password")
sleep(2)
os.reboot()
end

Download the files here if you want to use the method above^^^^^^^:
http://www.mediafire.com/?gg9uzq3h01rccbf
Cranium #2
Posted 19 January 2013 - 08:53 AM
Ahem…..

*rant about how programs in pure CC are not unhackable with a disk drive*

Now that that is over, I do want to welcome you to the forums, and commend you on your introduction to ComputerCraft with your first Password Lock!

Edit: On another note, you could always post this on Pastebin.com and have the user run "pastebin get <code> <filename>"
It's generally easier than Mediafire….
Edited on 19 January 2013 - 07:54 AM
bobmarley123456 #3
Posted 19 January 2013 - 10:11 AM
Thanks and ok