Discuss Scratch

scratchyone
Scratcher
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
Jonathan50
Scratcher
1000+ posts

Code Obfuscator

Neat idea, but really easy to get around.
scratchyone
Scratcher
100+ posts

Code Obfuscator

Jonathan50 wrote:

Neat idea, but really easy to get around.
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.
MegaApuTurkUltra
Scratcher
1000+ posts

Code Obfuscator

scratchyone wrote:

Jonathan50 wrote:

Neat idea, but really easy to get around.
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.
(function(){var eval2=eval;eval=function(){console.log(arguments);eval2(arguments);};})();
// Run obfuscated code here
Nothing to it
scratchyone
Scratcher
100+ posts

Code Obfuscator

MegaApuTurkUltra wrote:

scratchyone wrote:

Jonathan50 wrote:

Neat idea, but really easy to get around.
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.
(function(){var eval2=eval;eval=function(){console.log(arguments);eval2(arguments);};})();
// Run obfuscated code here
Nothing to it
I guess.
Jonathan50
Scratcher
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)
// START
{
  foo();
}
// END
// START
foo(
);
// END
// START
foo()
;
// END
// START
if(bar())
  foo();
// END
// START
if(bar()) {
  foo();
}
// END
// START
while(bar())
  ;
// END
scratchyone
Scratcher
100+ posts

Code Obfuscator

Jonathan50 wrote:

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.
herohamp
Scratcher
1000+ posts

Code Obfuscator

How would I use the Obfuscator on my website?
scratchyone
Scratcher
100+ posts

Code Obfuscator

herohamp wrote:

How would I use the Obfuscator on my website?
Pretty simple. How do you want it?
You could use an iframe to my site, if you want to embed the generator.
scratchyone
Scratcher
100+ posts

Code Obfuscator

BUMP

Powered by DjangoBB