Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Gulp plugin to (un)cipher json values retaining their types

License

Notifications You must be signed in to change notification settings

nbarikipoulos/gulp-cipher-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-cipher-json

NPM version JavaScript Style Guide

❗ 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.

Install

npm install gulp-cipher-json --save-dev

Usage

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'))
)

cipherJSON(action, secret, [options])

action: either 'encrypt' or 'decrypt'

secret: password

options: json-cipher-value options. Note the default settings perform an aes-256-ctr ciphering.

Credits

License

This module is MIT licensed. See LICENSE.

About

Gulp plugin to (un)cipher json values retaining their types

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published