image-encryption
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Encrpyt Images

Create a typescript npm package in less than a minute

Install

npm install image-encryption

Usage

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);

Readme

Keywords

Package Sidebar

Install

npm i image-encryption

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

4.69 kB

Total Files

5

Last publish

Collaborators

  • larrrssss