Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- The password is "banane".
- os.pullEvent = os.pullEventRaw
- shell.run("pastebin", "get", "02GWxA9s", "api")
- function tclear()
- term.clear()
- term.setCursorPos(1,1)
- end
- os.loadAPI("api")
- local pw = ""
- local passHash = "93ef5dde44b5cb1d8f3795982ee918c64b7114f6"
- --It's the same thing as writing "passHash = sha1("banane")"
- local running = true
- while running == true do
- tclear()
- write("Password:")
- pw = read()
- pw = sha1(pw)
- if pw == passHash then
- tclear()
- print("Access granted.")
- running = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement