Obfuscate script code when generating an EXE?

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 7 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
4100260298
Posts: 5
Last visit: Fri Aug 03, 2018 9:37 am

Obfuscate script code when generating an EXE?

Post by 4100260298 »

So, we have a section in the code that creates a PSCredential for the rest of the code to use. The person who wrote it put the username and password in the clear in the code. I am wondering if it is possible to obfuscate the code so that the login cred will be protected?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Obfuscate script code when generating an EXE?

Post by jvierra »

You can use PowerShell Studio to guard the credential in a compiled script.
User avatar
Alexander Riedel
Posts: 8488
Last visit: Tue Apr 16, 2024 8:42 am
Answers: 20
Been upvoted: 37 times

Re: Obfuscate script code when generating an EXE?

Post by Alexander Riedel »

Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 7 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked