MrKrrot / fcrypt-cli

Fcrypt is a simple CLI tool to encrypt and decrypt files using AES-256-CBC algorithm. It is written in Node.js and uses the built-in crypto module.

Home Page:https://www.npmjs.com/package/fcrypt-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fcrypt CLI

Fcrypt is a simple CLI tool to encrypt and decrypt files using AES-256-CBC algorithm. It is written in Node.js and uses the built-in crypto module.

Installation

npm install -g fcrypt-cli

Usage

fcrypt <command> <path>
Command Description
enc Enc command allows you to encrypt the file that you specify. If you specify a directory, all files in the directory will be encrypted.
dec Dec command allows you to decrypt the file that you specify. If you specify a directory, all files in the directory will be decrypted.
help, -h Help command displays the help menu
--version Version command displays the version of fcrypt

Examples

fcrypt enc ./file.txt
fcrypt dec ./file.txt.enc

Encryption example

Encryption example

Decryption example

Decryption example

Wrong secret key

NOTE: After running the above commands, you will be prompted to enter a secret key. The secret key is used to encrypt and decrypt the files. The secret key is not stored anywhere and is only used to encrypt and decrypt the file(s). Keep in mind that if you lose or forget the secret key, you will not be able to decrypt the file. So make sure you remember the secret key.

Wrong secret key example

License

Fcrypt is licensed under the MIT License. See LICENSE for more information.

About

Fcrypt is a simple CLI tool to encrypt and decrypt files using AES-256-CBC algorithm. It is written in Node.js and uses the built-in crypto module.

https://www.npmjs.com/package/fcrypt-cli

License:MIT License


Languages

Language:JavaScript 97.4%Language:Shell 2.6%