0.1.0 • Published 11 years ago

grunt-contrib-crypt v0.1.0

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

grunt-contrib-crypt

Grunt task to encrypt and decrypt files

Usage

Encrypt files :

$ grunt encrypt [--key mysecret]

Decrypt files :

$ grunt decrypt [--key mysecret]

Configuration

Put this in your grunt config :

crypt:{
  files:[                                   // files to process
    {
      dir:'demo/src',                       // root dir of files to encrypt, or dest dir of files to decrypt
      include:'**/*.js',                    // pattern to include files
      encryptedDir:'demo/encrypted'         // dest dir of files to encrypt, or root dir of files to decrypt
    }
  ],
  options:{
    key:grunt.cli.options.key || 'somekey'  // key used to encrypt / decrypt
                                            // for security purpose, prefer to pass it through command line arguments
  }
}

Same 'crypt' config object is used to encrypt and decrypt files.

Enjoy !

0.1.0

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.5

11 years ago

0.0.6

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago