https://github.com/nhatthm/go-secretstorage
Storing and retrieving secrets
https://github.com/nhatthm/go-secretstorage
go go-keyring golang keyring secret-storage secrets secretstorage
Last synced: 6 months ago
JSON representation
Storing and retrieving secrets
- Host: GitHub
- URL: https://github.com/nhatthm/go-secretstorage
- Owner: nhatthm
- License: mit
- Created: 2024-02-27T22:31:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-08-28T09:24:25.000Z (10 months ago)
- Last Synced: 2025-08-28T16:26:04.570Z (10 months ago)
- Topics: go, go-keyring, golang, keyring, secret-storage, secrets, secretstorage
- Language: Go
- Homepage:
- Size: 46.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Secret Storage
[](https://github.com/nhatthm/go-secretstorage/releases/latest)
[](https://github.com/nhatthm/go-secretstorage/actions/workflows/test.yaml)
[](https://codecov.io/gh/nhatthm/go-secretstorage)
[](https://goreportcard.com/report/go.nhat.io/secretstorage)
[](https://pkg.go.dev/go.nhat.io/secretstorage)
[](https://www.paypal.com/donate/?hosted_button_id=PJZSGJN57TDJY)
A library for storing and retrieving secrets.
## Prerequisites
- `Go >= 1.23`
## Install
```bash
go get go.nhat.io/secretstorage
```
## Usage
```go
package main
import (
"fmt"
"go.nhat.io/secretstorage"
)
func main() {
ss := secretstorage.NewKeyringStorage[string]()
err := ss.Set("service", "key", "value")
if err != nil {
panic(err)
}
value, err := ss.Get("service", "key")
if err != nil {
panic(err)
}
fmt.Println(value)
}
```
## Donation
If this project help you reduce time to develop, you can give me a cup of coffee :)
### Paypal donation
[](https://www.paypal.com/donate/?hosted_button_id=PJZSGJN57TDJY)
or scan this