Module:Sandbox/Jackmcbarn: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
set up little xor demonstration
Jackmcbarn (talk | contribs)
test scribunto bug
Line 68:
end
 
function p.mainxor(frame)
local s1, s2 = '1f e9 0d d5 33 a4 70 0c 83 03 9b a0 6d 2b', frame.args[1]
local t1, t2 = hexToByteTable(s1), hexToByteTable(s2)
return byteTableToString(xorByteTables(t1, t2))
end
 
function p.main(frame)
return mw.dumpObject(mw.ustring.match('4', '[^%s%d]'))
end