Created
March 31, 2017 06:25
-
-
Save atifaziz/10cb04301383972a634d0199e451b096 to your computer and use it in GitHub Desktop.
Decrypting DPAPI-protected Base64 data from PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type -AssemblyName System.Security; | |
[Text.Encoding]::ASCII.GetString([Security.Cryptography.ProtectedData]::Unprotect([Convert]::FromBase64String((type -raw (Join-Path $env:USERPROFILE foobar))), $null, 'CurrentUser')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment