-
-
Save lager1/7a9a4fb563cae152ae0843b13b42c940 to your computer and use it in GitHub Desktop.
Decrypting DPAPI-protected Base64 data from PowerShell
This file contains hidden or 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