JavaScript Obfuscation Techniques by Example
trickster.dev
JavaScript Obfuscation Techniques by Example
1–10 of 75 posts
Re: JavaScript Obfuscation Techniques by Example
#2For example, FileFields.js:
const FF = proxyFieldNames('FF', { foo: null, bar: null })
// DEV: FF.foo → FF_foo
// PROD: FF.foo → 'a'
https://github.com/uxtely/js-utils/tree/main/proxy-fields-ob...As a bonus, it's helpful for renaming, autocompleting, and finding usages.
Re: JavaScript Obfuscation Techniques by Example
#3Re: JavaScript Obfuscation Techniques by Example
#4Re: JavaScript Obfuscation Techniques by Example
#5Why obfuscating JS when there is WASM?
The more aggressive they make patent law the less useful it seems to become for protecting any actual investment, so here we are, clinging to wooden totems...
Re: JavaScript Obfuscation Techniques by Example
#6Why obfuscate, when you can just follow modern trends and use webpack (or similar) which gives you completely unreadable shit.
Re: JavaScript Obfuscation Techniques by Example
#7Why obfuscate, when you can just follow modern trends and use webpack (or similar) which gives you completely unreadable shit.
Regard it as an intermediate representation (IR) of your code, a stage between your readable source code and browser bytecode/jit.
The "shit" is still readable since webpack also generates source maps.
Re: JavaScript Obfuscation Techniques by Example
#8Re: JavaScript Obfuscation Techniques by Example
#9Re: JavaScript Obfuscation Techniques by Example
#10Why obfuscating JS when there is WASM?