$plainText = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($(Read-Host -AsSecureString)))
Created
October 13, 2025 20:02
-
-
Save yordanoweb/0bfef2d561822ed6e3bf4467d50c28cf to your computer and use it in GitHub Desktop.
Secure password to variable in PowerShell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment