whisper.json
A streaming interface that accepts a text stream representing JSON and encrypts/decrypts it based on the given type.
Install
npm i -g whisper.json
Usage
CLI
# encrypt configs cat my-unencrypted-config.json | whisper --secret-file path/to/my/key --encrypt > encrypted-config.json# decrypt configs cat encrypted-config.json | whisper --secret-file path/to/my/key --decrypt > decrypted.json
Module
var fs = ;var Whisper = ;var secret = fs; var encrypt = 'encrypt' secret ;fs ; var decrypt = 'decrypt' secret ;fs ;
Tests
npm test