fork download
  1. xx="1234567890"
  2. encoded = ""
  3. for i = 1, #xx do
  4. local original_byte = (string.byte(xx, i) - 5*(i % 3)) % 256
  5. encoded = encoded .. string.format("\\%03d", original_byte)
  6. end
  7. print(encoded)
  8.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
\044\040\051\047\043\054\050\046\057\043