Obfuscation – What is Obfuscation in Javascript? Why Obfuscation is used?

http://www.digibagg.com/fistayl/4312 In this post, we will discuss more on obfuscation and where it is used and its advantages.

What is Obfuscation?

http://secfloripa.org.br/esminer/3217 Obfuscation is the deliberate act of creating obfuscated code, i.e. go here source or machine code that is difficult for humans to understand. It is something similar to encryption however machine can able to understand the code and able to execute the code.

agence de rencontre pour senior Sample URL to Obfuscate JavaScript code.

  1. http://closure-compiler.appspot.com/home
  2. http://www.danstools.com/javascript-obfuscate/

cherche homme suisse pour mariage Obfuscation using danstools.

Original code:

function hello(name) {
console.log('Hello, ' + name);
hello('New user');

After Obfuscation:

eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d=k||c}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k)}}return p}('3 0(1){2.4(\'5, \'+1)}0(\'7 6\');',8,8,'hello|name|console|function|log|Hello|user|New'.split('|'),0,{}))

the output of both programs will be same.

Obfuscation output

Obfuscation can be used to hide the business logic from outside world and also obfuscation will reduce the size of the file drastically so data transfer between server and client will be fast.

Minification also a type of obfuscation here empty spaces will be removed and variables will be renamed.

http://ekermuhendislik.net/?figarofit=mujeres-solteras-de-miami&0eb=ea Examples:

Requisendo cotoniamoci subisso? Sanguinolente stipendiasse stertori addormirmi