I attatched my simple encryption/decryption program which I have started by just adding 1 to the ascii values when encrypting and subtracting 1 when decrypting. When I choose only one option or the other the program works fine, however when choosing to encrypt base.txt and output to en.txt AND THEN selecting to decrypt en.txt and output to de.txt IN THE SAME RUN, my de.txt is not equal to base.txt the way it should be. Can you please tell me what is wrong here?
Start Free Trial