Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahgsql/imageshuffler
Shuffles and de-shuffles ( Encrypt-Decrypt) image pixels with key
https://github.com/ahgsql/imageshuffler
Last synced: about 23 hours ago
JSON representation
Shuffles and de-shuffles ( Encrypt-Decrypt) image pixels with key
- Host: GitHub
- URL: https://github.com/ahgsql/imageshuffler
- Owner: ahgsql
- Created: 2022-01-19T22:56:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-19T23:29:29.000Z (almost 3 years ago)
- Last Synced: 2024-11-06T14:52:22.407Z (13 days ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image Shuffler
Image to Image Encryption (entry level)
![npm bundle size](https://img.shields.io/bundlephobia/min/imageshuffler) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/imageshuffler) [![npm downloads](https://img.shields.io/npm/dt/imageshuffler)](https://www.npmjs.com/package/imageshuffler) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)]
## Installation
```bash
npm install imageshuffler
yarn add imageshuffler
```## Usage
### Encryption
```jsx
const imgShuffler = require("imageshuffler");
imgShuffler.encryptImage("picture.png", "someSecretKey");
```### Decryption
target file parameter is not mandatory.
```jsx
const imgShuffler = require("imageshuffler");
imgShuffler.decryptImage("hidden.png", "someSecretKey", "target_file.png");
```![Original](https://i.ibb.co/g49299h/res.png "Original")
![Encrypted](https://i.ibb.co/m0kTn3V/res-enc.png "Encrypted")## License
MIT © [ahgsql](https://github.com/ahgsql)