Advertisement
Hydroxios

Password_Checker

Dec 27th, 2015
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. rednet.open("back")
  2.  
  3. while true do
  4.  
  5. rs.setOutput("right", false)
  6.  
  7. print("Enter the password: ")
  8.  
  9. password = ""
  10. password = read()
  11.  
  12. id, goodpassword = rednet.receive("HxPass", 20480)
  13.  
  14. if password == goodpassword then
  15. rs.setOutput("right", true)
  16. shell.run("clear")
  17. else
  18. rs.setOutput("right", false)
  19. shell.run("clear")
  20. end
  21.  
  22. os.sleep(1.5)
  23.  
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement