Skip to content

Made a javascript image encryt decryt tool for protect webgl usage texture inspired by sketchfab

License

Notifications You must be signed in to change notification settings

ronniechoyy/ImageEncryptionJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

ImageEncryptionJS

Made a javascript image encryt decryt tool for protect webgl usage texture inspired by sketchfab

Usage

imageurl           # Import image support Link or DataUrl
8numberPassword    # Input a eight number only password
method             # Should be opposite on encryt and decryt like ecryt in 0 and decrt in 1
fastMode           # Only process the vertical way of pixel

const processedImage = await ImageEncrypt(imageUrl, 8numberPassword, method , fastMode);

Example:
const encrytedImage = await ImageEncrypt('example.com/example_orginal.jpg', '63455326', 0 , 0);
const decrytedImage = await ImageEncrypt('example.com/example_encryted.jpg', '63455326', 1 , 0);

Example2:
const encrytedImage = await ImageEncrypt('example.com/example_orginal.jpg', '63455326', 1 , 1);
const decrytedImage = await ImageEncrypt('example.com/example_encryted.jpg', '63455326', 0 , 1);

Live Demo

Live Demo: Click here

About

Made a javascript image encryt decryt tool for protect webgl usage texture inspired by sketchfab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published