Search code examples
javascriptevalunpackcompression

How to unpack the contents of a JavaScript file?


You know how those packed js files look like, right?

 eval(function(p,a,c,k,e,d){ ... } ('obfuscated-string'.split('|'),0,{}))

It just so happens to be that i have to tweak some large legacy code that looks like that and I want to find a way to turn this into a more readable version.

If that's not possible, can i at least get rid of the eval?


Solution

  • You can with online unpackers: try one of these, find one that suits you: