Advertisement
Guest User

recive

a guest
Jan 22nd, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. m = peripheral.wrap("top")
  2. ca = peripheral.wrap("right")
  3. algo = "Blowfish"
  4. while true do
  5. M = {1,1}
  6. while true do
  7. A = {1,1,1}
  8. A[1] ,A[2],A[3] = os.pullEvent()
  9. if A[1] == "bitnet_message"  then
  10. --print(A[3])
  11. M[1] = A[3]
  12. end
  13. A[1] ,A[2],A[3] = os.pullEvent()
  14. if A[1] == "bitnet_message"  then
  15. --print(A[3])
  16. M[2] = A[3]
  17. break
  18. end
  19. end
  20.  
  21. key = ca.decodeKey(algo, M[1])
  22. text = key.decrypt(algo, M[2])
  23. print(text)
  24. if text == "password" then
  25. break
  26. end
  27.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement