Discuss Scratch
- Discussion Forums
 - » Advanced Topics
 - » Code Obfuscator
        
         
- 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
                        
                        
                    https://www.scratchyone.com/ob.html
- scratchyone
 - 
                            
						
						
                            Scratcher
                        
						
						 
100+ posts
Code Obfuscator
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
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
- scratchyone
 - 
                            
						
						
                            Scratcher
                        
						
						 
100+ posts
Code Obfuscator
I guess.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.Nothing to it(function(){var eval2=eval;eval=function(){console.log(arguments);eval2(arguments);};})(); // Run obfuscated code here

- 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)
                        
                        
                    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
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
 - 
                            
						
						
                            Scratcher
                        
						
						 
100+ posts
Code Obfuscator
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.
- Discussion Forums
 - » Advanced Topics
 - 
            » Code Obfuscator 
         
            


