RosettaCodeData/Task/Rot-13/Lua/rot-13-2.lua

6 lines
153 B
Lua
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
function rot13(s)
return (s:gsub("%a", function(c) c=c:byte() return string.char(c+(c%32<14 and 13 or -13)) end))
end
2025-08-11 18:05:26 -07:00
print(rot13("nowhere ABJURER"))