GoAESEncryption

module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT

README

GoAESEncryption

GoAESEncryption is a simple command-line tool for encrypting and decrypting files using AES encryption in Go.

Features

  • Encrypt files using AES encryption.
  • Decrypt files using AES encryption.
  • Automatically generates a random password and salt for encryption.
  • Uses PBKDF2 for key derivation.

Installation

  1. Clone the repository:
    git clone https://github.com/KidiXDev/GoAESEncryption.git
    
  2. Navigate to the project directory:
    cd GoAESEncryption
    
  3. Build the project:
    go build -o GoAESEncryption cmd/app/main.go
    

Usage

Encrypt a file

To encrypt a file, use the --encrypt flag:

./GoAESEncryption <filename> --encrypt

This will generate an encrypted file with the .enc extension and print the password used for encryption.

Decrypt a file

To decrypt a file, use the --decrypt flag followed by the password:

./GoAESEncryption <filename> --decrypt <password>

This will generate a decrypted file with the dec_ prefix.

Example

Encrypting a file:

./GoAESEncryption example.txt --encrypt

Decrypting a file:

./GoAESEncryption example.txt.enc --decrypt <password>

License

This project is licensed under the MIT License. See the LICENSE file for details.

Directories

Path Synopsis
cmd
app command
internal
pkg
aes

Jump to

Keyboard shortcuts

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