RosettaCodeData/Task/Caesar-cipher/Vedit-macro-language/caesar-cipher.vedit
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

11 lines
293 B
Text

#10 = Get_Num("Enter the key: positive to cipher, negative to de-cipher: ", STATLINE)
Goto_Pos(Block_Begin)
while(Cur_Pos < Block_End) {
#11 = Cur_Char & 0x60 + 1
if (Cur_Char >= 'A') {
Ins_Char((Cur_Char - #11 + 26 + #10) % 26 + #11, OVERWRITE)
} else {
Char(1)
}
}