Package com.project
Class FileProcessing
java.lang.Object
com.project.FileProcessing
Utility class for handling file encryption and decryption operations.
This class provides a static method to encrypt or decrypt a file using XOR-based encryption with a password.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
fileEncryptDecrypt
(File file, String password) Encrypts or decrypts the specified file using the provided password.
-
Constructor Details
-
FileProcessing
public FileProcessing()
-
-
Method Details
-
fileEncryptDecrypt
Encrypts or decrypts the specified file using the provided password.The encryption algorithm uses XOR operation between the file's bytes and the password bytes. The same method is used for both encryption and decryption.
- Parameters:
file
- The file to be encrypted or decrypted.password
- The password used for XOR encryption/decryption.
-