Socket
Book a DemoInstallSign in
Socket

github.com/kidixdev/goaesencryption

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/kidixdev/goaesencryption

Source
Go
Version
v1.0.4
Version published
Created
Source

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

  • Clone the repository:
    git clone https://github.com/KidiXDev/GoAESEncryption.git
    
  • Navigate to the project directory:
    cd GoAESEncryption
    
  • 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.

FAQs

Package last updated on 11 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts