fork download
  1. xx="Wer stirbt als ärster?"
  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)
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
\082\091\114\027\105\116\100\104\098\111\022\097\103\105\032\190\154\114\110\106\101\109\053