r/PowerShell • • May 21 '18

News Microsoft Replacing Windows with Linux for PowerShell in the Cloud

https://myitforum.com/microsoft-replacing-windows-with-linux-for-powershell-in-the-cloud/
161 Upvotes

81 comments sorted by

View all comments

Show parent comments

2

u/Henry_Horsecock May 22 '18

but the secure string stuff isn't in .Net core. :(

Goddamn that sucks... what are we supposed to do?

1

u/sid351 May 22 '18

Apologies, I was being a bit too generic. It is there, but the default encryption method that uses the Windows Data Protection API (DPAPI) doesn't work in pwsh at the moment.

You can still provide a key and do it that way, but you still end up with the problem of "How do I protect the key?". Using DPAPI is easy as it builds a key based on the user account and the individual machine the key was created on.

I guess I'm just going to have to compromise a bit and lock the key down with permissions.