so if anyone has an encryption and decryption api ready or know one (with passwords) then i would like to use it!
thx in advance
wilcomega
Posted 01 October 2012 - 06:55 PM
Posted 01 October 2012 - 07:12 PM
Posted 01 October 2012 - 08:04 PM
Posted 01 October 2012 - 08:38 PM
Posted 01 October 2012 - 10:29 PM
jag_e_nummer_ett, on 01 October 2012 - 10:18 PM, said:
local function xorEncrypt(data, key)
local klen = #key
local s = ""
for i = 1, #data do
s = s..string.char(bit.bxor(string.byte(data, i), string.byte(key, i % klen)))
end
return s
end
The same function works to encrypt and decrypt.
Posted 01 October 2012 - 10:32 PM
Posted 01 October 2012 - 10:41 PM
Posted 01 October 2012 - 11:40 PM
MysticT, on 01 October 2012 - 10:29 PM, said:
jag_e_nummer_ett, on 01 October 2012 - 10:18 PM, said:
local function xorEncrypt(data, key) local klen = #key local s = "" for i = 1, #data do s = s..string.char(bit.bxor(string.byte(data, i), string.byte(key, i % klen))) end return s endThe same function works to encrypt and decrypt.
0 members, 1 guests, 0 anonymous users