Advertisement
Guest User

password

a guest
Aug 20th, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. function getPass(checkPass)
  2.   local pass = ""
  3.   while pass ~= checkPass do
  4.     term.write("Please enter the password:  ")
  5.     pass = read()
  6.     if pass ~= checkPass then
  7.       print("wrong Password")
  8.     else
  9.       print("Correct Password!!")
  10.     end
  11.   end
  12. end
  13.  
  14. print("Starting Boot up sequence")
  15. sleep(1)
  16. print("please enter password to proceed")
  17. getPass("S.C.S.P")
  18. sleep(1)
  19. print("initializing")
  20. print("Please enter password to proceed")
  21. getPass("Ethan650")
  22. print("Logging in")
  23. sleep(1)
  24. print("For security please enter password")
  25. getPass("Dave4561")
  26. term.clear()
  27. term.setCursorPos(1, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement