encode-javascript
Reactive icon

Encode JavaScript

Stable version 1.0.3 (Compatible with OutSystems 11)
Uploaded
 on 02 January 2023
 by 
0.0
 (0 ratings)
encode-javascript

Encode JavaScript

Documentation
1.0.2

Encode JavaScript code using only six characters: [, ], (, ), !, and +. 

Use this component to encode any JavaScript code using only six characters: [, ], (, ), !, and +. The result is pure and valid JavaScript code which can be run in any web browser or JavaScript engine.

This technique relies on the fact that JavaScript is a weakly typed language and can be used to obfuscate or bypass various filtering systems.

For instance, in JavaScript false is the same as ![] and true can be written as !![]

Using the same approach, alert("a") is the same as alert((![]+[])[+!![]])

You can use the demo component for a quick conversion.