# cifra

> Encrypt and Decrypt files with node

Latest version **0.0.3** (published 2018-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install cifra
pnpm add cifra
yarn add cifra
bun add cifra
```

Provides the command `cifra`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-05-15 |
| First published | 2018-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | https://github.com/Luisangonzalez/ |
| Maintainers | luisangonzalez |
| Keywords | encrypt, decrypt, node, files, cli, cli encrypt, cli decrypt |

## Links

- npm: https://www.npmjs.com/package/cifra
- Repository: https://github.com/Luisangonzalez/cifra
- Homepage: https://github.com/Luisangonzalez/cifra#readme
- Issues: https://github.com/Luisangonzalez/cifra/issues
- npm.io page: https://npm.io/package/cifra

## Dependencies (1)

- [commander](https://npm.io/package/commander.md) ^2.14.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2018-05-15
- 0.0.2 — 2018-02-11
- 0.0.1 — 2018-02-09

## README

# Cifra

[![Build Status](https://travis-ci.org/Luisangonzalez/cifra.svg?branch=master)](https://travis-ci.org/Luisangonzalez/cifra)
[![Coverage Status](https://coveralls.io/repos/github/Luisangonzalez/cifra/badge.svg?branch=master)](https://coveralls.io/github/Luisangonzalez/cifra?branch=master)

## cli-tool to Encrypt and Decrypt files


### Install:

`npm install -g cifra`

### Use in cli:

```bash
➜  ~ cifra -h

  Usage: cifra [options] [command]

  Encrypt and decrypt files with node


  Options:

    -V, --version  output the version number
    -h, --help     output usage information


  Commands:

    Encrypt|e <file> <password> [algorithm]   Encript file
    Decrypt|d <file> <password> [algorithm]  Decrypt file

```

* #### [algorithm] --> aes192 it is default algorithm.
On recent OpenSSL releases, openssl `list-cipher-algorithms` will display the available cipher algorithms.

### Use in your projects:

```js
const encrypt = require('cifra').Encrypt;
const decrypt = require('cifra').Decrypt;


// Use with await
async function encryptAndDecryptExample() {
    await encrypt.file('./arg.js', 'mafasd');
    await decrypt.file('./arg.js.enc','mafasd');
}

encryptAndDecryptExample();


// Return promise
encrypt.file('./arg.js', 'mafasd')
    .then(() => {
        decrypt.file('./arg.js.enc','mafasd');
    });
```

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