Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("top")
- ca = peripheral.wrap("right")
- algos = {"AES","Blowfish","DES","DESede","RC2"}
- 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
- local function decryp(key,text,Method)
- key2 = ca.decodeKey(Method, key)
- text2 = key2.decrypt(Method, text)
- return text2
- end
- for i =1 ,5,1 do
- re,res = pcall(decryp,M[1],M[2],algos[i])
- if re == true then
- print(re)
- print(algos[i])
- print(res)
- if res == "password" then
- break
- end
- if re == true then
- break
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement