# insequur

> A very simple cipher module. I wanted to learn a bit about the Caesar cipher and basic substitution ciphers, and this is the result.

Latest version **0.0.4** (published 2018-10-18) · MIT license · 0 weekly downloads

## Install

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

## 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.4 |
| Published | 2018-10-18 |
| First published | 2018-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Alex |
| Maintainers | alexander-daniel |

## Links

- npm: https://www.npmjs.com/package/insequur
- Repository: https://github.com/alexander-daniel/insequur
- Homepage: https://github.com/alexander-daniel/insequur#readme
- Issues: https://github.com/alexander-daniel/insequur/issues
- npm.io page: https://npm.io/package/insequur

## Recent versions

- 0.0.4 (latest) — 2018-10-18
- 0.0.3 — 2018-10-18
- 0.0.2 — 2018-10-03
- 0.0.1 — 2018-10-03

## README

# insequur
A very simple cipher module. I wanted to learn a bit about the Caesar cipher and basic substitution ciphers, and this is the result.

**Goes without saying, but this is not to be used for any serious security.**

Only supports the following characters:
```
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-+=/
```

## install
```bash
npm i insequur
# or
yarn add insequur
```

## usage
```js
const Cipher = require('insequur');
const cipher = new Cipher('mySuperSecretKey');

// The message we wish to make secret
const message = 'Here be a message';

// Encode the string using our cipher
const encodedMessage = cipher.encode(message);

// We get back an encrypted string
console.log(encodedMessage) // => 'TC9yofvRebDiL2eEq'

// Decode that encrypted string with the correct cipher
const decodedMessage = cipher.decode(encodedMessage);

// The message is readable
console.log(decodedMessage) // => 'Here be a message';

// Now let's try to decode with the wrong cipher secret
const wrongCipher = new Cipher('theWrongKey');

// We don't get our original result back.
console.log(wrongCipher.decode(encodedMessage)); // => 'Av5S=7iLK=f5EYync'
```

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