Cli tool to encrypt files and folders using AES
npm i crypt-aes -g
crypt-aes encrypt|decrypt [options]
or
c-aes enc|dec [options]
for example:
crypt-aes encrypt --source file.txt --password mypass
or
c-aes enc -s file.txt -p mypass
Option | Description |
---|---|
--source, -s | source file or directory |
--password, -p : | password to be used |
--keep, -k : | keep the original file after the operation (optional, default is delete the original file) |
--output, -o : | output directory for the processed files (optional, default is same directory) |
For help:
c-aes -h
crypt-aes can also be used as local npm dependency
import {encrypt, decrypt} from 'crypt-aes';
encrypt({srcPath: './', pswrd: 'mypass', keepSrc: false, destPath: null});