r/ComputerCraft • u/martmists • Jan 13 '15
Secure your Computer!
add the following to your ROM:
Screenshots:
Pastebin:
if there is no file called password on the computer, it will make one with the password you desire. if there is a file, it will read it and use that password. It took me about half an hour to make. Please let me know what you think of it. of course, you could also add it youself without the adding to rom, but this is optimal for computer protection on servers. or, you could add the pullevents to prevent people from terminating the program. (by using ctrl + T)
3
u/BioPrince Jan 13 '15
What stops ctrl+t
3
u/demethan Jan 16 '15 edited Jan 16 '15
If you don't want people holding CTRL+T and quitting your lock, use this code at the top of your program:
os.pullEvent = os.pullEventRaw
2
u/demethan Jan 13 '15
you should put a pastebin. Easier than a screenshot.