GoAESEncryption is a simple command-line tool for encrypting and decrypting files using AES encryption in Go.
- Encrypt files using AES encryption.
- Decrypt files using AES encryption.
- Automatically generates a random password and salt for encryption.
- Uses PBKDF2 for key derivation.
- Clone the repository:
git clone https://github.com/KidiXDev/GoAESEncryption.git
- Navigate to the project directory:
cd GoAESEncryption
- Build the project:
go build -o GoAESEncryption cmd/app/main.go
To encrypt a file, use the --encrypt
flag:
./GoAESEncryption <filename> --encrypt
This will generate an encrypted file with the .enc
extension and print the password used for encryption.
To decrypt a file, use the --decrypt
flag followed by the password:
./GoAESEncryption <filename> --decrypt <password>
This will generate a decrypted file with the dec_
prefix.
Encrypting a file:
./GoAESEncryption example.txt --encrypt
Decrypting a file:
./GoAESEncryption example.txt.enc --decrypt <password>
This project is licensed under the MIT License. See the LICENSE file for details.