-- passOpen will launch the "action" program on the computer -- passHash will open OS's shell normally -- If you don't know how to create a hash use http://www.sha1.fr/ -- Don't forget to check if your hash too common and widely known on https://isc.sans.edu/tools/reversehash.html -- Default passOpen: IShouldntUseTheDefaultPassword -- Default passHash: DefaultPasswordsAreReallyReallyBad local passOpen = "9779c6cd9fee4a096917c6917b5531eefdb682fd" local passHash = "aac90349a78d38bbb9037646366c38a4460f6a62" function tclear() term.clear() term.setCursorPos(1,1) end os.pullEvent = os.pullEventRaw if not fs.exists("sha1") then shell.run("pastebin", "get", "KVFZEr7x", "sha1") end os.loadAPI("sha1") local pw = "" local running = true while running == true do tclear() write("Type in the password:") pw = read("*") pw = sha1.sha1(pw) if pw == passHash then tclear() print("Authorized. You may now access the computer entirely.") running = false end if pw == passOpen then tclear() print("Authorized. The computer's purpose may now be .") shell.run("action") sleep(2) end end