Helper for secure files using native module NodeJS::crypto
nmp install securesecret -g
securesecret <param1> <param2> <param3> <param4> <param5>
"param1": Cipher Algorithms (required)
"param2": Password to encript or decript (required)
"param3": 0: to encrypt OR 1: to decrypt (required)
"param4": Input file (path) for to encrypt OR to decrypt (required)
"param5": Encrypted/Decrypted output file (path) (required)
"param6": Output/Input encoding: hex | binary | base64 (optional)
- aes-128-cbc
- aes-128-ecb
- aes-192-cbc
- aes-192-ecb
- aes-256-cbc
- aes-256-ecb
Add @v{Major_Version} in command line
Example:
securesecret @v1 onePassword 1 secret.enc
securesecret @v2 onePassword 1 secret.enc secret.txt