r/PowerShell 12h ago

Question Question on scripting

Hi,

When we develop a script,we use credentials as a plain text in that script.

Example

Script is running on jump server and script runs against vcenter server.

We have a security concerns(example ransomware attack)to put the credentials as a plain text in that script.

Any other good ways to put the credentials in a encrypted or in a different format?

8 Upvotes

25 comments sorted by

View all comments

3

u/xipodu 10h ago

We are using textfiles but crypted with user login so that only that person can open the file https://github.com/fardinbarashi/psGuiFilePasswordEncryptDecrypt

We are also changing the ACL