Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tclear()
- term.clear()
- term.setCursorPos(1,1)
- end
- os.pullEvent = os.pullEventRaw
- os.loadAPI("sha1")
- local pw = ""
- local passHash = "93ef5dde44b5cb1d8f3795982ee918c64b7114f6"
- local running = true
- while running == true do
- tclear()
- write("Entrez le mot de passe:")
- pw = read()
- pw = sha1(pw)
- if pw == passHash then
- tclear()
- print("Acces autorise.")
- running = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement