Skip to content

Package winvault provides primitives for accessing the undocumented Windows Vault API.

License

Notifications You must be signed in to change notification settings

danieljoos/winvault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winvault

Package winvault provides primitives for accessing the undocumented Windows Vault API.

GoDoc

Installation

go get github.com/danieljoos/winvault

Usage

List Web Credentials

The following example prints the credentials stored by Internet Explorer:

package main

import (
	"fmt"

	"github.com/danieljoos/winvault"
)

func main() {
	vault, err := winvault.OpenWebCredentials()
	if err != nil {
		panic(err)
	}
	defer vault.Close()

	items, err := vault.Items()
	if err != nil {
		panic(err)
	}
	for _, item := range items {
		fmt.Println("---")
		fmt.Println("Application:", item.Name)
		fmt.Println("Resource:", item.Resource.AsString())
		fmt.Println("Username:", item.Identity.AsString())
		fmt.Println("Password:", item.Authenticator.AsString())
	}
}

About

Package winvault provides primitives for accessing the undocumented Windows Vault API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages