aes256cli

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 10 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL