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: about 2 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 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-07T19:27:31.000Z (12 months ago)
- Last Synced: 2024-10-09T10:20:42.221Z (8 months ago)
- Topics: go, go-keyring, golang, keyring, secret-storage, secrets, secretstorage
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
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.21`
## Install
```bash
go get go.nhat.io/secretstorage
```## Usage
```go
package mainimport (
"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
![]()