well, my idea was to use a user defined key phrase, consisting of 20 words. Then I would add all of them to different JS variables in a generated file, and compile that JS so it can't be read. I'd also clear the JS variables after using them, so they wouldn't be read by code injection either. I just need to make sure that compiled JS code also hides the strings, because if it doesn't, I'll need a key generator instead.
that would still be breakable, but it's more secure than anything we had in the past.
This is one of the reasons for my comment about "encryption can't be file-based" in the other topic that probably was the reason for this test.
If you encrypt the picture files (which of course can be done), then the game needs to have the decryption method somewhere in its code - and that can always be found, especially in a web-based engine.
For encryption to work in a way that keeps the legal user from getting the resources, the decryption code itself needs to be protected or encrypted as well. That can be done with an exe in several ways (for example using a modified browser that decrypts codefiles before using them), but I know of no method to do that with web-based access (unless again you provide the exe of a special browser to the user by other means).
That however might be an alternative - modifying the code of an existing open source browser in a way that it no longer has debug or file-saving functions but contains a decryption of otherwise unreadable game files (not only resources, also the HTML/JS code) and making sure that the resulting browser.exe can't be reverse-engineered and doesn't save the files locally unencrypted. Don't know how much work that would be however - it's been too long since I programmed anything myself.