# gulp-dir-cipher

> gulp-dir-cipher

Latest version **1.2.0** (published 2023-05-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install gulp-dir-cipher
pnpm add gulp-dir-cipher
yarn add gulp-dir-cipher
bun add gulp-dir-cipher
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2023-05-25 |
| First published | 2023-05-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | juln |
| Maintainers | juln |
| Keywords | base64, blowfish, cipher, decipher, crypto |

## Links

- npm: https://www.npmjs.com/package/gulp-dir-cipher
- Repository: https://github.com/z-juln/gulp-dir-cipher
- Homepage: https://github.com/z-juln/gulp-dir-cipher/README.md
- Issues: https://github.com/z-juln/gulp-dir-cipher/issues
- npm.io page: https://npm.io/package/gulp-dir-cipher

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2023-05-25
- 1.1.0 — 2023-05-24
- 1.0.3 — 2023-05-24
- 1.0.2 — 2023-05-23
- 1.0.1 — 2023-05-23
- 1.0.0 — 2023-05-23

## README

# gulp-dir-cipher

gulp中间件: gulp-dir-cipher, 使用base64+blowfish的方式, 对整个目录下的所有文件进行加密, 包括加密文件名、目录名、文件内容

## install

`npm i gulp-dir-cipher`

## use

```typescript
import gulp from 'gulp';
import gulpDirCipher, { checkPassword, encodeDirname, decodeDirname } from 'gulp-dir-cipher';

const password = 'juln1234';

if (!checkPassword(password)) {
  process.exit();
}

// encoding
gulp.src(['/Volumes/dev/gulp-dir-cipher/src/**/**', '!/Volumes/dev/gulp-dir-cipher/src'])
  .pipe(gulpDirCipher(password, 'encoding', { debug: true }))
  .pipe(gulp.dest('/Volumes/dev/gulp-dir-cipher/dist'))

setTimeout(() => {
  // decoding
  gulp.src(['/Volumes/dev/gulp-dir-cipher/dist/**/**', '!/Volumes/dev/gulp-dir-cipher/dist'])
    .pipe(gulpDirCipher(password, 'decoding', { debug: true }))
    .pipe(gulp.dest('/Volumes/dev/gulp-dir-cipher/dist/source'))
}, 2000)
```

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