# @theobaidur/simple-encrypt-decrypt

> The simplest library to encrypt & decrypt text. This is suitable for small & simple applications.

Latest version **1.0.4** (published 2021-12-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install @theobaidur/simple-encrypt-decrypt
pnpm add @theobaidur/simple-encrypt-decrypt
yarn add @theobaidur/simple-encrypt-decrypt
bun add @theobaidur/simple-encrypt-decrypt
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-12-20 |
| First published | 2021-12-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | theobaidur@gmail.com |
| Maintainers | theobaidur |

## Links

- npm: https://www.npmjs.com/package/@theobaidur/simple-encrypt-decrypt
- Repository: https://github.com/theobaidur/simple-encrypt-decrypt
- Homepage: https://github.com/theobaidur/simple-encrypt-decrypt#readme
- Issues: https://github.com/theobaidur/simple-encrypt-decrypt/issues
- npm.io page: https://npm.io/package/@theobaidur/simple-encrypt-decrypt

## Recent versions

- 1.0.4 (latest) — 2021-12-20
- 1.0.3 — 2021-12-20
- 1.0.2 — 2021-12-20
- 1.0.1 — 2021-12-20
- 1.0.0 — 2021-12-20

## README

# Simple Encrypt Decrypt

The simplest library to encrypt & decrypt text. This is suitable for small & simple applications.

`You should never use this library for serious projects.`

## Usage

```typescript
import config, { decrypt, encrypt } from "@theobaidur/simple-encrypt-decrypt";

// configuration

config.salt = "simple_encrypt_decrypt";

// encrypt some text

const encrypted = encrypt("Hello world");

console.log(encrypted); // output:: 4c6168686b24736b766860

// decrypt the encrypted text

const text = decrypt(encrypted);

console.log(text); // output:: Hello world

```

## Credits

Inspired from 
- https://stackoverflow.com/a/54026460
- https://stackoverflow.com/a/66938952

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