# grunt-contrib-crypt

> Encrypt / decrypt files

Latest version **0.1.0** (published 2013-03-05) · 0 weekly downloads

## Install

```sh
npm install grunt-contrib-crypt
pnpm add grunt-contrib-crypt
yarn add grunt-contrib-crypt
bun add grunt-contrib-crypt
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2013-03-05 |
| First published | 2013-02-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Olivier Penhoat |
| Maintainers | openhoat |

## Links

- npm: https://www.npmjs.com/package/grunt-contrib-crypt
- Repository: https://github.com/openhoat/grunt-contrib-crypt
- Issues: https://github.com/openhoat/grunt-contrib-crypt/issues
- npm.io page: https://npm.io/package/grunt-contrib-crypt

## Dependencies (1)

- [kruptos](https://npm.io/package/kruptos.md) 0.0.3

## Recent versions

- 0.1.0 (latest) — 2013-03-05
- 0.0.9 — 2013-03-05
- 0.0.8 — 2013-03-05
- 0.0.7 — 2013-03-05
- 0.0.5 — 2013-02-17
- 0.0.6 — 2013-02-17
- 0.0.4 — 2013-02-11
- 0.0.3 — 2013-02-11
- 0.0.2 — 2013-02-11
- 0.0.1 — 2013-02-10

## README

## 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',                           // root dir of files to encrypt / decrypt
          include:'**/*.js',                    // pattern to include files
          encryptedExtension:'.encrypted'       // extension used for encrypted files
        }
      ],
      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 !

---
_Source: https://npm.io/package/grunt-contrib-crypt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
