Encrypt your files with 3DES and Grunt based on grunt-encrypt of charliedowler
npm install grunt-encrypt-3des> Encrypt your files with Grunt, crypto-js and 3des
~0.4.5If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
``shell`
npm install grunt-encrypt-3des --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js`
grunt.loadNpmTasks('grunt-encrypt-3des');
to the data object passed into grunt.initConfig().`js
grunt.initConfig({
encrypt3des: {
options: {
key: grunt.cli.options.key,
dest: output/encrypted/'
},
file: 'path/to/file'
},
});
`$3
#### options.key
Type:
String
Default value: nullA string value used to encrypt a file
#### options.dest
Type:
StringA string to the output directory, defaults to the source file path
#### options.ext
Type:
String
Default value: nullA string to set the file extension for the encrypted file.
#### file
Type:
StringPath to file to encrypt.
#### files
Type:
Object`An object containing a map of files.