fork download
  1. xx="X von GCAJN90"
  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
\083\022\118\106\100\032\066\057\065\069\068\057\043