# web-crypto-lite

> convenient client-side symmetric encryption/decryption wrapper

Latest version **0.1.1** (published 2021-11-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install web-crypto-lite
pnpm add web-crypto-lite
yarn add web-crypto-lite
bun add web-crypto-lite
```

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2021-11-29 |
| First published | 2021-11-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Thomas Urban |
| Maintainers | soletan |

## Links

- npm: https://www.npmjs.com/package/web-crypto-lite
- npm.io page: https://npm.io/package/web-crypto-lite

## Recent versions

- 0.1.1 (latest) — 2021-11-29
- 0.1.0 — 2021-11-27

## README

# web-crypto-lite

convenient client-side symmetric encryption/decryption wrapper

## License

MIT

## Installation

```bash
npm i web-crypto-lite
```

## Usage

```javascript
import { Crypto } from "web-crypto-lite";

async function demo() {
    const password = "mySecR3T";
    const data = { msg: "for your eyes only" }
    
    const cipher = await Crypto.encrypt( data, password );

    const received = await Crypto.decrypt( cipher, password );
	
    console.log( received.msg === data.msg );     // true
}
```

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