https://github.com/danieljoos/winvault
Package winvault provides primitives for accessing the undocumented Windows Vault API.
https://github.com/danieljoos/winvault
go golang vault windows
Last synced: 25 days ago
JSON representation
Package winvault provides primitives for accessing the undocumented Windows Vault API.
- Host: GitHub
- URL: https://github.com/danieljoos/winvault
- Owner: danieljoos
- License: mit
- Created: 2017-09-13T06:15:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-13T06:54:55.000Z (over 8 years ago)
- Last Synced: 2025-03-29T06:13:16.945Z (about 1 year ago)
- Topics: go, golang, vault, windows
- Language: Go
- Size: 6.84 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# winvault
Package winvault provides primitives for accessing the undocumented Windows Vault API.
[](https://godoc.org/github.com/danieljoos/winvault)
# Installation
```Go
go get github.com/danieljoos/winvault
```
# Usage
### List Web Credentials
The following example prints the credentials stored by Internet Explorer:
```Go
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())
}
}
```