Image Javascript

A simple tool which encodes your Javascript Code into a .png image file

Uses Auyer’s steganography library to encode data

Demo

Non-Encoded Image

Non Encoded Image

SHA256: 3D568164DE25AE2AB8F1EF2E55E7A925BF0A49AF1FD85817C5113FCEA8705750

Javascript Encoded Image

Javascript Encoded Image

SHA256: 16633A42672CD271865C99DC3FC9A34E517C2C694AFB822B0EA2C03808C3B093

Run Locally

Clone the project

  git clone https://github.com/yashraj-n/image-js

Go to the project directory

  cd image-js

Install dependencies

 go get github.com/auyer/steganography/

Run the main.go file

  go run .

Usage

Compile

Compile a javascript code into a image file

ijs compile [Javascript file] [Image file]

Example:

ijs compile test.js test.png --debug

Run

Decodes a image file into a Javascript file and runs it. (Must have node.js installed)

ijs run [Image File]

Example:

ijs run test.png

Export

Decodes a image file into a Javascript file

ijs export [Image File]

Example:

ijs export test.png

License

MIT

GitHub

View Github