ExeterChris wrote:
2,3,4 should be
Graanag/Cvcre pbzovbngvba
I think.
I want to work in cryptography when I leave uni. Looks like I need some practice
Still not quite there... a pbzovangvba. And, I agree.
I have to say I cheat. Using Linux, I just have "rot13" available directly from the command line. Under XP, I wrote myself a little C# proglet that did cut&paste rot13 translation for me.
Alternatively, the following C code will do fine...
Code:
#include <stdio.h>
int main(int argc, char *argv[]) {
int c;
while ((c = getchar()) != EOF) {
unsigned char d = (c & ~('a' - 'A')) - 'A';
putchar(d >= 26 ? c : d < 13 ? c + 13 : c - 13);
}
return 0;
}
_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports."
Kamran Nazeer