We can convert a PowerShell script to an executable exe file using the PS2EXE-GUI. We have an exe file now. All is well. The resulting exe file is a .Net assembly containing the Base64 encoded source script. This means that the code is not hidden. It can be easily restored back with the key -Extract:
Script.exe -Extract: 'Script.ps1'
Does this mean that I cannot create a shell where the source code will be completely hidden? Of course we are not talking about assembler. Are there any ways to hide the PowerShell source code in GUI exe file? Thanks