'how to make batch file not readable but executable?
I have automated a task. and I have to share batch file with team and other vendors. I want my script to be not readable but script should execute. How to achieve this?
Solution 1:[1]
Try inserting a bunch of goto
s everywhere.
Also, try obscuring the variables with said goto
s
::variable======================
set "password=hidden"
::add gotos=====================
:kkkkk
set password=h
goto jadvb
:jadvb
set password=%password%i
goto paosd
:paosd
set password=%password%d
goto alsmm
:alsmm
set password=%password%d
goto amdww
:amdww
set password=%password%e
goto njaww
:njaww
set password=%password%n
goto asdawds
:asdawds
::scramble======================
goto kkkkk
:amdww
set password=%password%e
goto njaww
:paosd
set password=%password%d
goto alsmm
:njaww
set password=%password%n
goto asdawds
:jadvb
set password=%password%i
goto paosd
:kkkkk
set password=h
goto jadvb
:alsmm
set password=%password%d
goto amdww
:asdawds
This won't make the file unreadable but it will obscure it greatly.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |