# image-encryption

> Encrypt images with a personal token

Latest version **1.0.0** (published 2021-08-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install image-encryption
pnpm add image-encryption
yarn add image-encryption
bun add image-encryption
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-08-28 |
| First published | 2021-08-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | larrrssss |
| Keywords | npm package, template |

## Links

- npm: https://www.npmjs.com/package/image-encryption
- Repository: https://github.com/larrrssss/image-encryption
- Homepage: https://github.com/larrrssss/image-encryption#readme
- Issues: https://github.com/larrrssss/image-encryption/issues
- npm.io page: https://npm.io/package/image-encryption

## Recent versions

- 1.0.0 (latest) — 2021-08-28

## README

# Encrpyt Images

Create a typescript npm package in less than a minute

## Install

```sh
npm install image-encryption
```

## Usage

```ts
import { encrypt, decrypt } from 'image-encryption';
import fs from 'fs';
import path from 'path';

const key = 'My secret key';
const image = fs.readFileSync(path.join(__dirname, 'image.png'));

const encryptedBuffer = encrypt(image, key);

const decryptedImage = decrypt(encryptedBuffer, key);
```

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