question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Obfuscate folder but keep same file names

See original GitHub issue

Is there a way using the CLI to obfuscate a folder example /dist but keep the same file names. Example if I have:

/dist/14a3.js /dist/qe3g.js

When I obfuscate using:

javascript-obfuscator ./dist, I will get the following files:

/dist/14a3.js /dist/qe3g.js /dist/obfuscated-14a3.js /dist/obfuscated-qe3g.js

What I want to actually happen, is to obfuscate those two files but just override the content inside them with obfuscation, therefore when I execute the command javascript-obfuscator ./dist, i will still have only the two original files but with obfuscated code.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
canaanitescommented, Jul 24, 2020

Use this… you can add it to the npm build script cd src/ && javascript-obfuscator ./ --output ../dist/

1reaction
omkar-tenkalecommented, Feb 26, 2020

Here’s how i did it

sudo apt-get install mmv

mmv '*-obfuscated*' '#1#2'

Reference https://unix.stackexchange.com/a/237383

Read more comments on GitHub >

github_iconTop Results From Across the Web

Obfuscating File Names in Packages - IBM
For security reasons, you may want to obfuscate the names of files in your packages. The original file names are not visible in...
Read more >
Obfuscate file names in webpage - javascript - Stack Overflow
If you ask me, a better solution would be to give the filenames non-meaningful names from the beginning. This would be names like...
Read more >
Directory Name Obfuscate - Feature - rclone forum
Hi All, We are not using directory name encryption on our cloud syncs because we ran into a problem with file path length....
Read more >
Encrypt & obfuscate filenames - Unix & Linux Stack Exchange
When you want to update the backup, do the same commands. This will re-use the .encfs6.xml file and need the same password.
Read more >
Downloaded a complete series back, all file names ... - Reddit
New comments cannot be posted and votes cannot be cast ... If filenames of (large) files in the final folder look obfuscated or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found