char* encrypt(const char* plaintext)
{
int len = strlen(plaintext);
char* cyphertext = new char[len+1];
for(int i=0 ; i<len ; ++i)
{
cyphertext[i] = plaintext[i] + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9;
}
cyphertext[len] = 0;
return cyphertext;
}
char* decrypt(const char* plaintext)
{
int len = strlen(plaintext);
char* cyphertext = new char[len+1];
for(int i=0 ; i<len ; ++i)
{
cyphertext[i] = plaintext[i] - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9;
}
cyphertext[len] = 0;
return cyphertext;
}



+rep