Handling Secrets and Credentials

suggest change

Introduction

In PowerShell, avoid storing a password in clear text. Store it as a SecureString. If you encrypt that string with ConvertFrom-SecureString and do not pass -Key or -SecureKey, Windows uses DPAPI. Only the same user on the same computer can decrypt it, and any process running as that user on that computer can decrypt it too. This is not a substitute for a secret store, and it does not work the same way on non-Windows PowerShell.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents