Notes
Search
K
Comment on page

Windows

Decrypt stored secure credential

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

Decrypt GPP CPassword

gpp-decrypt <crypted pass>