Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months 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 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-13T06:54:55.000Z (over 7 years ago)
- Last Synced: 2024-10-28T05:12:58.677Z (3 months ago)
- Topics: go, golang, vault, windows
- Language: Go
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- 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.[![GoDoc](https://godoc.org/github.com/danieljoos/winvault?status.svg)](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 mainimport (
"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())
}
}
```