RosettaCodeData/Task/Rot-13/AutoHotkey/rot-13-4.ahk
2014-04-02 16:56:35 +00: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
}