https://github.com/rayyannafees/pixipher
Pixel Cipher integrated in the web
https://github.com/rayyannafees/pixipher
Last synced: 3 months ago
JSON representation
Pixel Cipher integrated in the web
- Host: GitHub
- URL: https://github.com/rayyannafees/pixipher
- Owner: RayyanNafees
- Created: 2023-07-12T18:22:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-09T20:12:02.000Z (almost 3 years ago)
- Last Synced: 2025-03-12T04:29:44.929Z (over 1 year ago)
- Language: TypeScript
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pixipher: Pixelise your data
Pixel Cipher implementation on the web via WebAssembly for data conversion
## Useful links
- [Pixels to Canvas Image (PNG)](https://www.w3schools.com/jsref/canvas_createimagedata.asp)
- [Getting Pixels from the Canvas](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Pixel_manipulation_with_canvas)
- [Reading Bytes from a file](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsBinaryString)
- [Getting the bytes from an uploaded File](https://usefulangle.com/post/297/javascript-get-file-binary-data)
- [Converting a string of binary number to Integer](https://www.tutorialspoint.com/convert-an-array-of-binary-numbers-to-corresponding-integer-in-javascript)
- [Converting Integer to binary string](https://stackoverflow.com/questions/11103487/how-to-convert-binary-representation-of-number-from-string-to-integer-number-in)
- [Base64 conversion](https://stackoverflow.com/questions/6213227/fastest-way-to-convert-a-number-to-radix-64-in-javascript)
- [Image from TypeArray of RGBA Pixels](https://stackoverflow.com/questions/22823752/creating-image-from-array-in-javascript-and-html5)
- [ArrayBuffer & Base64 interconversion](https://stackabuse.com/encoding-and-decoding-base64-strings-in-node-js/)
- [Bitjs: Binary Operations in JS](https://github.com/codedread/bitjs)
## Base64 & ArrayBuffers
```js
const encoded = Buffer.from('username:password', 'utf8').toString('base64')
// 'dXNlcm5hbWU6cGFzc3dvcmQ='
const plain = Buffer.from('dXNlcm5hbWU6cGFzc3dvcmQ=', 'base64').toString('utf8')
// 'username:password'
```