RosettaCodeData/Task/Rot-13/AutoHotkey/rot-13-4.ahk
2023-07-01 13:44:08 -04:00

9 lines
153 B
AutoHotkey

Rot13(string) {
Output := ""
Loop, Parse, string
{
a := ~Asc(A_LoopField)
Output .= Chr(~a-1//(~(a|32)//13*2-11)*13)
}
return Output
}