Skip to content

JS library for image encryption (encrypt/decrypt image rasters with AES 256)

Notifications You must be signed in to change notification settings

gregsidal/cipher-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

cipher-image

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

About

JS library for image encryption (encrypt/decrypt image rasters with AES 256)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published