SecureFileEncryptor is a PowerShell tool for securely encrypting and decrypting text, files, and folders using password-protected SHA-256 hashing. The tool provides a simple interactive menu, allowing users to perform encryption and decryption operations on individual texts, files, or entire directories.
- Text Encryption/Decryption: Encrypts plain text to a secure, hashed format, and decrypts it back to the original text.
- File Encryption/Decryption: Encrypts text content within files and saves it in the same file securely.
- Folder Encryption/Decryption: Processes all files within a folder for batch encryption or decryption.
- SHA-256 Password Hashing: Uses a SHA-256 hash of your password as the key, adding an extra layer of security.
- PowerShell: Ensure PowerShell is installed on your system (version 5.1 or later recommended).
- Download and open the script in PowerShell.
- Run the script:
.\SecureFileEncryptor.ps1
- Choose an option from the menu:
- 1: Encrypt Text
- 2: Decrypt Text
- 3: Encrypt File
- 4: Decrypt File
- 5: Process Folder (Encrypt or Decrypt all files in a folder)
- 6: Exit the application
.\SecureFileEncryptor.ps1
- Select
1
to Encrypt Text. - Enter a password.
- Input the text you want to encrypt.
- The tool displays the encrypted text.
- Select
4
to Decrypt a File. - Enter the same password used for encryption.
- Provide the path to the encrypted file.
- The decrypted content will replace the encrypted content in the file.
- Password Matching: Ensure you use the same password for encryption and decryption.
- Data Security: Encrypted files and text should be handled carefully, as they will be overwritten in place.
This project is licensed under the MIT License.