Skip to content

ro-tex/aes256cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aes256cli

A simple file encrypt/decrypt tool.

The tool uses Go's built-in crypto/aes library to encrypt the input file with AES-256.

Caveat

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.

Installation

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.

Usage

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

About

A simple file encrypt/decrypt tool.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages