Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 618 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 618 Bytes

file-encryption

A tools for encrypting and decrypting files, the files are encrypted using AES-256.

I'm using this tool to encrypt password sheet and other sensitive information.

Installation

Requirements:

  • Node.js
  • NPM (Node Package Manager)

Install dependencies:

npm install

Usage

you can set a secret key in .env file or use a command line argument.

if you use a secretKey argument, secret key from .env will be ignored.

Encrypt file

npm start enc <file> <secretKey:optional>

Decrypt file

npm start dec <file> <secretKey:optional>