I have a Powershell app that retrieves some secret data- then needs to execute a .NET exe (locally) passing that data. It appears that passing the data as a raw param could expose it to users on the machine, so I'm looking for a way to keep it secure.
Possible solutions-
- Get the data directly from the C# app (possible, but not ideal)
- Put the data in an EFS encrypted file and pass the file location
- Encrypt the param with a shared key (something built into windows?)
Any tips/guidance would be appreciated.