Skip to content

hacker-ram8867/EncryptorTool1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Java File Encryption/Decryption Tool This is a simple Java-based command-line tool that allows you to securely encrypt and decrypt files using AES encryption. It uses a password to derive a secure key and includes a feature to corrupt files if decryption is attempted too many times with the wrong password.

πŸ“ Features πŸ”’ AES Encryption using javax.crypto

πŸ”“ Secure decryption with password validation

πŸ’£ Corrupts file after 5 failed decryption attempts

πŸ“¦ No external libraries required

πŸ’» Works in Eclipse, VS Code, or any Java environment

πŸ›  How to Run βœ… Option 1: Using Eclipse (Recommended) Open Eclipse IDE

Create a new Java Project:

File > New > Java Project

Create a new package named:

FilesEncryptionPrograms Create a new class named:

FileEncypter Copy and paste the full code into the class

Run the program:

Right-click on the file > Run As > Java Application

Eclipse includes required Java libraries by default β€” no setup needed.

πŸ’» Option 2: Using VS Code Install prerequisites:

Java JDK 8 or later

VS Code with the Java Extension Pack

Create a Java project:

Open Command Palette (Ctrl+Shift+P)

Choose: Java: Create Java Project

Add the Java file:

Inside the src folder, create package FilesEncryptionPrograms

Add the FileEncypter.java file with the provided code

Compile and run:

javac FilesEncryptionPrograms/FileEncypter.java java FilesEncryptionPrograms.FileEncypter If javax.crypto appears missing, ensure you're using the JDK, not just the JRE.

πŸ“‹ Example Usage plaintext Copy Edit πŸ”’ Enter 'E' to encrypt or 'D' to decrypt: E Enter path of file: /Users/you/Documents/test.txt Enter output file path: /Users/you/Documents/test_encrypted.txt Enter password to encrypt: mySecret123 βœ… File encrypted successfully: /Users/you/Documents/test_encrypted.txt plaintext Copy Edit πŸ”’ Enter 'E' to encrypt or 'D' to decrypt: D Enter path of file: /Users/you/Documents/test_encrypted.txt Enter output file path: /Users/you/Documents/test_decrypted.txt Enter password to decrypt (Attempt 1/5): wrongpass ❌ Incorrect password or corrupted file. ... πŸ’€ Too many failed attempts. The file will be corrupted. ☠️ Your file was corrupted. πŸ”§ Requirements Java Development Kit (JDK 8 or higher)

No external libraries needed

Uses: javax.crypto, java.security, java.io, java.util.

⚠️ Important Notes πŸ’Ύ Don't forget your password. There's no password recovery.

β›” After 5 failed decryption attempts, the original file is intentionally corrupted.

πŸ”‘ Only the same password that was used to encrypt the file can decrypt it.

πŸ” All operations are local β€” no data is sent anywhere.

πŸ“¬ Contact For questions, feedback, or contributions, reach out via:

πŸ“§ Email: hellohellohihi112233@gmail.com

πŸ§‘β€πŸ’» GitHub: https://github.com/hacker-ram8867

πŸ§‘β€πŸ’» Author Developed for educational and secure file-handling purposes. Feel free to modify and improve based on your needs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors