SHOW:
|
|
- or go back to the newest paste.
| 1 | local enCrypt = {''}
| |
| 2 | ||
| 3 | --change Encryption keys here | |
| 4 | local deCrypt = 'b' | |
| 5 | local deCrypt1 = 'a' | |
| 6 | -- | |
| 7 | ||
| 8 | local deCrypt2 = {}
| |
| 9 | ||
| 10 | for num = 1,#deCrypt1 do | |
| 11 | table.insert(deCrypt2,string.sub(deCrypt1,num,num)) | |
| 12 | end | |
| 13 | ||
| 14 | for num = 1,#deCrypt do | |
| 15 | table.insert(enCrypt,string.sub(deCrypt,num,num)) | |
| 16 | end | |
| 17 | for i,v in ipairs(enCrypt) do | |
| 18 | if i ~= 1 then | |
| 19 | num = string.byte(v) | |
| 20 | for i2,v2 in ipairs(deCrypt2) do | |
| 21 | v2 = string.byte(v2) | |
| 22 | if i2%2 == 0 then | |
| 23 | num = num/v2 | |
| 24 | else | |
| 25 | num = num*v2 | |
| 26 | end | |
| 27 | end | |
| 28 | num = num * os.epoch() | |
| 29 | enCrypt[i] = num | |
| 30 | end | |
| 31 | end | |
| 32 | rednet.open('back')
| |
| 33 | rednet.broadcast(enCrypt) | |
| 34 | for i,v in ipairs(enCrypt) do | |
| 35 | print(v) | |
| 36 | end |