Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("top")
- ca = peripheral.wrap("right")
- algo = "Blowfish"
- while true do
- M = {1,1}
- while true do
- A = {1,1,1}
- A[1] ,A[2],A[3] = os.pullEvent()
- if A[1] == "bitnet_message" then
- --print(A[3])
- M[1] = A[3]
- end
- A[1] ,A[2],A[3] = os.pullEvent()
- if A[1] == "bitnet_message" then
- --print(A[3])
- M[2] = A[3]
- break
- end
- end
- key = ca.decodeKey(algo, M[1])
- text = key.decrypt(algo, M[2])
- print(text)
- if text == "password" then
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement