xct's notes
Search…
Windows

Decrypt stored secure credential

1
$pw = Get-Content .\<file> | ConvertTo-SecureString
2
$bstr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pw)
3
$UnsecurePassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($bstr)
Copied!
or:
1
powershell (Import-Clixml cred.xml).GetNetworkCredential().Password
Copied!

Decrypt GPP CPassword

1
gpp-decrypt <crypted pass>
Copied!
Last modified 1yr ago
Copy link
Contents