This is a simple command-line interface (CLI) tool written in Go for encrypting and decrypting files. It uses a password-based encryption scheme.
To install this tool, you need to have Go installed on your machine. Once you have Go installed, you can clone this repository and build the tool using the following commands:
git clone https://github.com/akashdeep-patra/go-file-encryption.git
cd go-file-encryption
go build -o file-encryptionThis tool supports three commands: encrypt, decrypt, and help.
To encrypt a file, use the encrypt command followed by the path to the file you want to encrypt:
./file-encryption encrypt /path/to/fileYou will be prompted to enter a password for the encryption. The password should be at least 8 characters long, contain at least one number, and at least one special character. You will need to confirm the password by entering it again.
To decrypt a file, use the decrypt command followed by the path to the file you want to decrypt:
./file-encryption decrypt /path/to/fileYou will be prompted to enter the password that was used to encrypt the file.
To display a help message, use the help command:
./file-encryption helpContributions are welcome! Please feel free to submit a Pull Request.