edgar
is a command-line interface (CLI) application developed in Go using the Cobra library. It provides AES256 encryption and decryption functionality for text or file inputs.
- Clone the repository:
git clone https://github.com/msrexe/edgar.git
- Navigate to the project directory:
cd edgar
- Build the binary:
go build -o edgar cmd/edgar/main.go
- Run the application:
./edgar [command]
- Encrypt a text:
edgar enc 'your-text' -key enc_key.txt
- Encrypt the contents of a file:
edgar enc -f plain.txt -key enc_key.txt > encryptedText.txt
- Decrypt the encrypted text:
edgar dec 'encrypted-text' -key enc_key.txt
- Decrypt the contents of a file:
edgar dec -f encryptedText.txt -key enc_key.txt > decryptedText.txt
Make sure to replace enc_key.txt
with your own encryption key file.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License.