Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Installation

Build it from source

You will need Go for this.

go install github.com/ro-tex/aes256cli@latest
brew install ro-tex/tap/aes256cli

or

brew tap ro-tex/tap
brew install aes256cli

Usage

To encrypt a file:

aes256cli -e myFile.dat

To decrypt a file:

aes256cli -d myFile.dat.aes

To print the version and the git commit the binary was built from:

$ aes256cli -v
aes256cli v0.1.0 (commit 508e3d9)

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
  -v    print version and commit hash
  -version
        print version and commit hash

Building

The version and commit hash are injected at build time via ldflags:

go build -ldflags "-X main.version=v0.1.0 -X main.commit=$(git rev-parse HEAD)" .

Without these flags, the binary reports version dev and commit none.

Only the first 7 characters of the commit hash are printed, so passing either the full or the short hash works.

About

A simple file encrypt/decrypt tool.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages