Advertisement
jared314

Untitled

Aug 11th, 2015
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. -- The password is "banane".
  2. os.pullEvent = os.pullEventRaw
  3. shell.run("pastebin", "get", "02GWxA9s", "api")
  4. function tclear()
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. end
  8.  
  9. os.loadAPI("api")
  10. local pw = ""
  11. local passHash = "93ef5dde44b5cb1d8f3795982ee918c64b7114f6"
  12. --It's the same thing as writing "passHash = sha1("banane")"
  13. local running = true
  14. while running == true do
  15. tclear()
  16. write("Password:")
  17. pw = read()
  18. pw = sha1(pw)
  19. if pw == passHash then
  20. tclear()
  21. print("Access granted.")
  22. running = false
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement