Talk:Lua Tutorials/@comment-121.75.137.107-20120813083335

HOW TO STOP HACKERS

I will make you a program that is un-hackable

os.pullEvent = os.pullEventRaw

password = "yourpasswordhere"

function clar

term.clear

term.setCursorPos(1,1)

end

clear

write"Password: "

input = read("*")

if input == password then

clear

print("Welcome")

redstone stuff

os.shutdown

else

clear

print("Sorry, Wrong Password")

sleep(3)

os.shutdown