Obfuscate folder but keep same file names
See original GitHub issueIs 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:
- Created 4 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Use this… you can add it to the npm build script
cd src/ && javascript-obfuscator ./ --output ../dist/
Here’s how i did it
sudo apt-get install mmv
mmv '*-obfuscated*' '#1#2'
Reference https://unix.stackexchange.com/a/237383