Cifra
cli-tool to Encrypt and Decrypt files
Install:
npm install -g cifra
Use in cli:
➜ ~ cifra -h Usage: cifra [options] [command] Encrypt and decrypt files with node Options: -V, --version output the version number -h, --help output usage information Commands: Encrypt|e <file> <password> [algorithm] Encript file Decrypt|d <file> <password> [algorithm] Decrypt file
- #### [algorithm] --> aes192 it is default algorithm.
On recent OpenSSL releases, openssl
list-cipher-algorithms
will display the available cipher algorithms.
Use in your projects:
const encrypt = Encrypt;const decrypt = Decrypt; // Use with await { await encrypt; await decrypt;} ; // Return promiseencrypt ;