JS library for image encryption
Encrypts/decrypts image data (rasters) with AES 256, opens from PNG files, displays on canvas
Two JS files needed:
lib/cipherimage/cipherimage.js
lib/cryptojs/rollups/aes.js
High-level calls (results show on canvas automatically):
Create: var ci = new CipherImage.FileViewer( canvas, notify_callback );
Open image: ci.setsrc( filename );
Detect: ci.isCipherimg();
Encrypt: ci.encrypt( pass );
Decrypt: if (!ci.decrypt( pass )) alert( "Wrong key!" );
Save PNG: <a href="" onclick="this.href=ci.getBmpDataUrl()" download="cipherimage.png">Save</a>
Browser programs that use this library:
Cipher-image encrypt/decrypt utility
Cipher-image miner (brute-force a cipher-image)
Both programs are live at:
https://gregsidal.github.io
https://gregsidal.neocities.org (mirror)
2021 Greg Sidal, inherits CryptoJS licence