Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Code Obfuscator
- scratchyone
-
100+ posts
Code Obfuscator
I made a javascript code obfuscator. It nests atob and eval functions. How do you like it? You can use it without giving credit.
https://www.scratchyone.com/ob.html
https://www.scratchyone.com/ob.html
- scratchyone
-
100+ posts
Code Obfuscator
Yeah. It does make it a bit harder though, because you would have to decode a lot of base64, so you would have to write a program. Neat idea, but really easy to get around.
- MegaApuTurkUltra
-
1000+ posts
Code Obfuscator
Yeah. It does make it a bit harder though, because you would have to decode a lot of base64, so you would have to write a program. Neat idea, but really easy to get around.
(function(){var eval2=eval;eval=function(){console.log(arguments);eval2(arguments);};})(); // Run obfuscated code here
- scratchyone
-
100+ posts
Code Obfuscator
I guess.Yeah. It does make it a bit harder though, because you would have to decode a lot of base64, so you would have to write a program. Neat idea, but really easy to get around.Nothing to it(function(){var eval2=eval;eval=function(){console.log(arguments);eval2(arguments);};})(); // Run obfuscated code here

- Jonathan50
-
1000+ posts
Code Obfuscator
Perhaps you should make it ‘smarter’ so it detects where it can split rather than splitting each line?
Here are some cases: (each thing between START and END shouldn't be split)
Here are some cases: (each thing between START and END shouldn't be split)
// START { foo(); } // END // START foo( ); // END // START foo() ; // END // START if(bar()) foo(); // END // START if(bar()) { foo(); } // END // START while(bar()) ; // END
- scratchyone
-
100+ posts
Code Obfuscator
Perhaps you should make it ‘smarter’ so it detects where it can split rather than splitting each line?
Here are some cases: (each thing between START and END shouldn't be split)-snip-
Good idea. I'm not sure how I would do it. Maybe I could look for {}, and combine everything between them.
- scratchyone
-
100+ posts
Code Obfuscator
Pretty simple. How do you want it? How would I use the Obfuscator on my website?
You could use an iframe to my site, if you want to embed the generator.
- Discussion Forums
- » Advanced Topics
-
» Code Obfuscator