This simple C++ program allows you to encrypt and decrypt files using XOR encryption with a password.
- Compile the program using a C++ compiler.
- Run the executable.
- Enter the file path of the file you want to encrypt/decrypt.
- Enter a password.
- Choose whether to encrypt or decrypt the file.
- The program will generate the encrypted/decrypted file with the ".encrypted" extension.
Enter file path: C:\Users\Person\Desktop\example.txt
Enter password: mypassword
Do you want to encrypt (e) or decrypt (d) the file? e
File encrypted successfully!