Hello, How can decrypt the file that the program below encrypt?
Please I need with this.
// This program encrypts a file
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
const int ENCRYPT=10; // amount to add to a chor
const int SIZE= 255; // array size
char inFileName[SIZE];
char data; // to hold a char from a file
To decrypt something that is encrypted, you are essentially reversing the process. You need the encryption key, which you have already (ENCRYPT), so you just need a function that takes your encrypted file and reverses the encryption.