- Introduction
- Features
- Installation
- Usage
- CLI Usage
- Contribution
- License
- Acknowledge
- Donate
- Changelog
Go-crypt is a simple cryptography tool that aims to provide secure encryption and decryption solutions using PBKDF2, zlib, and AES-256-GCM algorithms. It is designed to protect the confidentiality of sensitive text by encrypting and decrypting data.
Go-crypt offers the following features:
- Utilizes PBKDF2, zlib, and AES-256-GCM algorithms for strong and secure encryption.
- Secure and reliable decryption process to restore data to its original form.
- Can be integrated into TypeScript code.
- Provides CLI options to encrypt or decrypt from the terminal.
To install Go-crypt locally, follow these installation steps:
npm install @barudakrosul/gcrypt
To install globally, use:
npm install -g @barudakrosul/gcrypt
To start using Go-crypt, import the module first:
1. CommonJS
const gcrypt = require("@barudakrosul/gcrypt");
2. ESM (ECMAScript Modules)
import gcrypt from "@barudakrosul/gcrypt";
Example of usage:
const text = "Secret text message!";
const pass = "SecretPasswordKey";
const encrypted = gcrypt.encrypt(text, pass);
const decrypted = gcrypt.decrypt(encrypted, pass);
console.log("Encrypted:", encrypted.toString("utf-8"));
console.log("Decrypted:", decrypted);
To use this tool from the command line, you can use the gcrypt
command with the following options:
Option |
Description |
|
Display help for this command. |
|
Display the current version. |
|
Enter the file name to encrypt or decrypt. |
|
Save the encryption or decryption result with another desired name. |
|
Enable verbose mode (text captions). |
|
Start decrypting file or standard input data. |
|
Enter a strong password for encryption or a specific password for decryption (default: |
|
Display the result of file encryption or decryption to the terminal. |
If no filename is given, gcrypt
will encrypt or decrypt from standard input to standard output. You can combine short options, such as -v -c
which is the same as -vc
or -cv
.
Example of CLI usage:
$ gcrypt --file script.js
Example if using the --passkey
option:
$ gcrypt --file script.js --passkey secretskey
Example of encryption of standard input:
$ printf "Secret text message!" | gcrypt
Contributions to Go-crypt are greatly appreciated! Whether reporting bugs, suggesting new features, or contributing to code improvements.
Go-crypt is licensed under the AGPL-3.0 License - see the LICENSE file for details.
Go-crypt appreciates the support and contributions of the following individuals and open source projects:
- @FajarKim - Lead developer and creator of the application.
- Open source community - For valuable contributions to the tools and libraries used in this project.
We really appreciate your support to continue developing this project. If you find this project useful, you can support us with a donation:
Every donation, no matter the amount, means a lot to us. Thank you for your support! ❤️
Keep up with the latest changes and updates of Go-crypt by referring to Catatan Perubahan.
Thank you for choosing Go-crypt! We aim to provide a secure and reliable solution for encrypting and decrypting text in a variety of environments.