AESEncryptor

command module
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

AESEncryptor

Simple AES CBC Encryption example

Installation

You can install the binary with:

go install github.com/Etwodev/AESEncryptor@latest

Or install the library with:

go get github.com/Etwodev/AESEncryptor@latest

Usage

The following command will decrypt the file 'random.bytes' with the key '554954704169383270484157776E7A71' and mask '48524D4377506F6E4A4C49423357436C' In this case, the 's' value is 0, meaning the inputted data is encrypted, to be decrypted.

~/go/bin/AESEncryptor -i './random.bytes' -o './out.bin' -k '554954704169383270484157776E7A71' -m '48524D4377506F6E4A4C49423357436C' -s 0

On the reverse, we can reencrypt the file we just decrypted, like so:

~/go/bin/AESEncryptor -i './out.bin' -o './reencrypt.bytes' -k '554954704169383270484157776E7A71' -m '48524D4377506F6E4A4C49423357436C' -s 1

If you want to just encrypt a file from no mask, you can do the following:

~/go/bin/AESEncryptor -i './out.bin' -o './encrypted.bytes' -k '554954704169383270484157776E7A71' -s 1
user@some_local_user ~ % ~/go/bin/AESEncryptor -h
Usage: AESEncryptor [-h] [-i str] [-k str] [-m str] [-o str] [-s int] [-v str] [parameters ...]
 -h, --help        displays help
 -i, --input=str   The input file
 -k, --key=str     The input file
 -m, --mask=str    The AES mask in hexadecimal (Optional)
 -o, --output=str  The output file path
 -s, --state=int   Whether the data is encrypted (0) or decrypted (1)
 -v, --vect=str    The AES init vector in hexadecimal (Optional)

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
⌂ 换网址