user2081518
user2081518

Reputation: 748

Obfuscate Images in EaselJS

Is there any way to protect your sprites on EaselJS? Currently is too easy to download the sprites.

On chrome just go to console -> resources like this

I made a resarch before i made this answer and found this topic . That could be very nice. Also we don't need to save the slices in a json like he said, if we have a shuffle seed.

But, i didn't find any thing in nodejs(back-end) to make this image shuffle.

I tried Node GM but its looks too complicaded to bind a image on top of another with (w,h,x,y,offsetX,offsetY)

I know always will have a way to "hack" the resource. But at least offer some difficult.

Upvotes: 0

Views: 273

Answers (2)

sbat
sbat

Reputation: 1888

One of the simple approaches is to encode images to base64, store them as part of Javascript and decode at runtime. See:

Convert and insert Base64 data to Canvas in Javascript

But obviously this will increase download size.

Personally, I would not go this route for "normal" applications or games, unless it is really justified or put on me as an external requirement. For example, one can easily extract assets from the android APK, but this does not seem an area of concern for most of the developers.

Upvotes: 1

Madara's Ghost
Madara's Ghost

Reputation: 174957

The user's browser downloads those images whether you want it or not. Otherwise, they wouldn't be able to display them.

At any given time, any user can just right click on any image on the site and click SAVE AS, you can't stop it, and you shouldn't try.

If you don't want people downloading your work, don't put it on the public facing internet.

Upvotes: 0

Related Questions