lua decrypted function get Error -


i'm new in lua try use base64 encoder/decoder functions when try print data after using bdc( decrypted function )it give errors

function bdc(data)     data = string.gsub(data, '[^'..b..'=]', '')     return (data:gsub('.', function(x)         if (x == '=') return '' end         local r,f='',(b:find(x)-1)         i=6,1,-1 r=r..(f%2^i-f%2^(i-1)>0 , '1' or '0') end         return r;     end):gsub('%d%d%d?%d?%d?%d?%d?%d?', function(x)         if (#x ~= 8) return '' end         local c=0         i=1,8 c=c+(x:sub(i,i)=='1' , 2^(8-i) or 0) end         return string.char(c)     end)) end print(bdc('njagotygmdmgnjygndagnjugmdegnkmgmdygnjugmdegnkmgmdugnjugmdegnkmgmdggnjugmdegnkmgmdk=')) 

error

lua: data.lua:3: attempt concatenate global 'b' (a nil value) stack traceback:     data.lua:3: in function 'bdc'     data.lua:16: in main chunk     [c]: ? 

please tell errors & why came?


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -