diff options
Diffstat (limited to 'encrypt.c')
-rw-r--r-- | encrypt.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,6 @@ /* * SimpleCrypt + * Non-ECB version * So simple it's all one function. * * Nathan Lasseter (User_4574) @@ -45,7 +46,8 @@ int main(int argc, char** argv) { int c, d, j = 0; while ((c=fgetc(file)) != EOF) { - d = c ^ passphrase[j]; + d = c + passphrase[j]; + passphrase[j] = d; fputc(d, temp); if (j == passlen) j=0; |