❗ THIS PACKAGE IS NOT LONGER MAINTAINED |
---|
Package | gulp-cipher-value |
---|---|
Description | Gulp wrapper for json-cipher-value. (De)cipher values of json files remaining their types. |
npm install gulp-cipher-json --save-dev
const gulp = require('gulp')
const cipherJSON = require('gulp-cipher-json')
gulp.task('default', _ => gulp.src('src/data/*.json')
.pipe(cipherJSON(
'encrypt',
'my secret password from anywhere'
))
.pipe(gulp.dest('dist/data'))
)
action: either 'encrypt' or 'decrypt'
secret: password
options: json-cipher-value options. Note the default settings perform an aes-256-ctr ciphering.
- Nicolas Barriquand (nbarikipoulos)
This module is MIT licensed. See LICENSE.