Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("AF")
- function check(s)
- for i=1,#s do
- b=string.byte(s:sub(i,i))
- if b>127 then return false end
- end
- return true
- end
- tt=string.char(
- 48, 52, 49,100, 54,101,102,101,101, 53, 50, 97, 48, 54, 97, 99,
- 52,100, 97,101, 49, 50,102, 52, 97, 51, 57, 54, 99, 57, 55, 99,
- 48, 55, 48, 51,102, 52, 50, 50, 55,100, 98, 99, 99, 48, 51, 99,
- 55,101, 99, 48, 52, 48, 48, 49, 51, 51, 48, 50, 50, 98, 98,102,
- 52, 48, 57, 50, 57, 56,100,102, 53,102,101, 52, 55,102, 51,102,
- 52, 97,101, 56,100, 53, 55, 52, 50,100, 52, 51, 53, 97, 54, 56,
- 56, 97, 98, 52,102, 57, 56, 57, 57, 48, 55, 50,102, 49, 99, 56,
- 52, 98, 49,102,101, 56, 49, 97, 48, 50, 51,102, 49, 97, 50, 51,
- 97, 48, 54,101, 51, 56,102, 50, 98, 48, 99, 54, 97, 56,100, 50,
- 55, 50, 49, 52, 48, 50, 55, 53, 57, 98,100,102, 51, 98,102, 56)
- --tt="7e6bdd29241601d458028360b0b0df1ec78116ebf45c61449dcee580191096e58b23ff092a7ea40b9f55fcf4ec6d1f4e"
- t=tt:sub(1,16)
- term.clear()
- for k=0,99999,10 do
- for l=0,9 do
- kk=tostring(k+l)
- key=AF.getkey(kk)
- if check(AF.decrypt(t,key)) then
- dect=AF.decrypt(tt,key)
- if check(dect) then
- print('Well done!')
- print(kk)
- print(dect)
- read()
- term.clear()
- end
- end
- end
- term.setCursorPos(1,1) print(kk)
- sleep(0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement