fcrypt-cli

1.1.0 • Public • Published

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.

Package Sidebar

Install

npm i fcrypt-cli

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

695 kB

Total Files

24

Last publish

Collaborators

  • mrkrrot