node.js – Code Protection?

You could accomplish this with a NativeExtension for node You’d have a boostrap.js file that adds a extension handler for .jse files // register extension require.extensions[“.jse”] = function (m) { m.exports = MyNativeExtension.decrypt(fs.readFileSync(m.filename)); }; require(“YourCode.jse”); YourCode.jse would be the encrypted version of your source code (the key for decryption wouldn’t be anywhere in plain-text because … Read more

Obfuscate PHP code [closed]

I put together the following list a ways back – don’t know if they are all current, or how many are now free, but you should find something useful here: About: Wikipedia article: PHP Accelerator Comparison of APC, Zend, xCache, & the Zend Framework Software: Safeyar (Best) PHP’s APC (PECL page) RoadSend Turck-mmcache eAccelerator PHP-Accelerator … Read more

Is distributing python source code in Docker secure?

Docker images are an open and documented “application packaging” format. There are countless ways to inspect the image contents, including all of the python source code shipped inside of them. Running applications inside of a container provides isolation from the application escaping the container to access the host. They do not protect you from users … Read more

How can I obfuscate (protect) JavaScript? [closed]

Obfuscation: Try YUI Compressor. It’s a very popular tool, built, enhanced and maintained by the Yahoo UI team. You may also use: Google Closure Compiler UglifyJS UPDATE: This question was originally asked on 2008, and The mentioned technologies are deprecated. you can use: terser – more information in web.dev. Private String Data: Keeping string values … Read more