Skip to content

Instantly share code, notes, and snippets.

@atifaziz
Created February 28, 2018 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atifaziz/5987a553f173ea474274f9a80a2cd996 to your computer and use it in GitHub Desktop.
Save atifaziz/5987a553f173ea474274f9a80a2cd996 to your computer and use it in GitHub Desktop.
Show ApiKeys from NuGet.Config
Add-Type -AssemblyName System.Security; ([xml](type -Raw C:\Users\aziz1a\AppData\Roaming\NuGet\NuGet.Config)).configuration.apiKeys.add | Add-Member -PassThru original -Type ScriptProperty { [Text.Encoding]::UTF8.GetString([Security.Cryptography.ProtectedData]::Unprotect([Conver
t]::FromBase64String($this.value), [Text.Encoding]::UTF8.GetBytes('NuGet'), 'CurrentUser')) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment