Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local enCrypt = {''}
- --change Encryption keys here
- local deCrypt = 'b'
- local deCrypt1 = 'a'
- --
- local deCrypt2 = {}
- for num = 1,#deCrypt1 do
- table.insert(deCrypt2,string.sub(deCrypt1,num,num))
- end
- for num = 1,#deCrypt do
- table.insert(enCrypt,string.sub(deCrypt,num,num))
- end
- for i,v in ipairs(enCrypt) do
- if i ~= 1 then
- num = string.byte(v)
- for i2,v2 in ipairs(deCrypt2) do
- v2 = string.byte(v2)
- if i2%2 == 0 then
- num = num/v2
- else
- num = num*v2
- end
- end
- num = num * os.epoch()
- enCrypt[i] = num
- end
- end
- rednet.open('back')
- rednet.broadcast(enCrypt)
- for i,v in ipairs(enCrypt) do
- print(v)
- end
Add Comment
Please, Sign In to add comment