Re:Why do browsers not allow non-readable javascript?
by Saavedro on Thursday December 29, 2011 @12:44AM
(#3402691)
If the browser can decrypt it then it is a simple matter to get at the decrypted code.
If you want to make it really difficult to "steal" code just run it through a minifer. You'll never really be able to hide what a script is doing though. If you want logic not to be user-known and very likely user-modifiable you -must- make it server side. If this weren't the case DRM would actually work ;)
If you want to make it really difficult to "steal" code just run it through a minifer. You'll never really be able to hide what a script is doing though. If you want logic not to be user-known and very likely user-modifiable you -must- make it server side. If this weren't the case DRM would actually work ;)