{"id":18864431,"url":"https://github.com/spirosoik/go-secreter","last_synced_at":"2025-04-14T13:13:56.913Z","repository":{"id":87378091,"uuid":"338301110","full_name":"spirosoik/go-secreter","owner":"spirosoik","description":"A secreter interface to hash in database or use the transit engine of Vault","archived":false,"fork":false,"pushed_at":"2021-02-13T09:34:39.000Z","size":3486,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T02:23:42.349Z","etag":null,"topics":["aws","azure","encryption","golang","keyvault","kms","transit-engine","vault"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spirosoik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-12T11:36:05.000Z","updated_at":"2023-12-13T09:29:50.000Z","dependencies_parsed_at":"2023-07-05T00:02:26.466Z","dependency_job_id":null,"html_url":"https://github.com/spirosoik/go-secreter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spirosoik%2Fgo-secreter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spirosoik%2Fgo-secreter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spirosoik%2Fgo-secreter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spirosoik%2Fgo-secreter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spirosoik","download_url":"https://codeload.github.com/spirosoik/go-secreter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886328,"owners_count":21177644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","azure","encryption","golang","keyvault","kms","transit-engine","vault"],"created_at":"2024-11-08T04:41:16.129Z","updated_at":"2025-04-14T13:13:56.873Z","avatar_url":"https://github.com/spirosoik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PkgGoDev](https://pkg.go.dev/badge/github.com/spirosoik/go-secreter)](https://pkg.go.dev/github.com/spirosoik/go-secreter)\n[![report card](https://img.shields.io/badge/report%20card-a%2B-ff3333.svg?style=flat-square)](http://goreportcard.com/report/spirosoik/go-secreter)\n\n\n# Secreter\nA secreter interface to provide encryption in transit.\n\n## Supports\n\n- Local (simple encryption)\n- Vault transit engine\n\nIn Progress:\n- AWS KMS\n- Azure Key Vault\n\n`note: for Local must be a base64-encoded key, of length 32 bytes when decoded`\n\n## Example\n\n```bash\nmake run-example\n```\n\nEncrypt and decrypt sensitive info example:\n\n```golang\n\n// Secreter initialise\nsecreter, err := encrypt.New(context.Background(), encrypt.Config{\n  SecretType: encrypt.LocalSecret,\n  SecretKey:  \"fyktabT5I8fFK-mkSbbxIsfsbcnP-4QFa5awWmyuGqs=\",\n})\n\n// Encrypt\nsecret, err := secreter.Encrypt(encrypt.Options{\n  Plaintext: \"sensitive\",\n})\n\n// Decrypt\nplaintext, err := secreter.Decrypt(encrypt.Options{\n  CipherText: secret,\n})\n```\n\nCheck the full example [here](example/main.go) \n\nIf you want to generate keys for encryption you can use the following [binaries here](key-generator/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspirosoik%2Fgo-secreter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspirosoik%2Fgo-secreter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspirosoik%2Fgo-secreter/lists"}