A simple file encrypt/decrypt tool.
The tool uses Go's built-in crypto/aes library to encrypt the input file with AES-256.
Currently, the aes256cli
reads the entire input file in memory before encrypting it and writing it to disk. This means
that you can easily run out of memory if you try encrypting a large file. I hope to address this in the near future.
If you have Go installed:
go install github.com/ro-tex/aes256cli@latest
If you prefer a binary, you can download a Linux amd64 one from https://github.com/ro-tex/aes256cli/releases.
To encrypt a file:
aes256cli -e myFile.dat
To decrypt a file:
aes256cli -d myFile.dat.aes
To see the usage information run the tool without parameters:
$ aes256cli
You must choose to either encrypt (-e/--encrypt) or decrypt (-d/--decrypt) a file.
Usage of aes256cli:
aes256cli [operation] FILENAME
-d decrypt a file
-decrypt
decrypt a file
-e encrypt a file
-encrypt
encrypt a file