{"id":15798235,"url":"https://github.com/nasa9084/go-secret","last_synced_at":"2025-07-06T10:38:36.394Z","repository":{"id":57610174,"uuid":"162212918","full_name":"nasa9084/go-secret","owner":"nasa9084","description":null,"archived":false,"fork":false,"pushed_at":"2019-01-08T01:44:45.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-05T00:40:52.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nasa9084.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}},"created_at":"2018-12-18T01:33:28.000Z","updated_at":"2019-01-08T01:44:46.000Z","dependencies_parsed_at":"2022-09-18T06:17:01.916Z","dependency_job_id":null,"html_url":"https://github.com/nasa9084/go-secret","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasa9084%2Fgo-secret","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasa9084%2Fgo-secret/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasa9084%2Fgo-secret/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasa9084%2Fgo-secret/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nasa9084","download_url":"https://codeload.github.com/nasa9084/go-secret/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246531975,"owners_count":20792736,"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":[],"created_at":"2024-10-05T00:40:25.521Z","updated_at":"2025-03-31T20:12:12.525Z","avatar_url":"https://github.com/nasa9084.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-secret\n=========\n[![Build Status](https://travis-ci.org/nasa9084/go-secret.svg?branch=master)](https://travis-ci.org/nasa9084/go-secret)\n[![GoDoc](https://godoc.org/github.com/nasa9084/go-secret?status.svg)](https://godoc.org/github.com/nasa9084/go-secret)\n\nSymmetrically encrypt and decrypt with passphrase using OpenPGP\n\n\n## SYNOPSIS\n\n``` go\nfunc ExampleEncrypt() {\n\t// a config including sensitive data\n\ttype Config struct {\n\t\tID       string\n\t\tPassword string\n\t}\n\tcfg := Config{\n\t\tID:       \"somethingID\",\n\t\tPassword: \"somethingPassword\",\n\t}\n\tmasterPassword := \"qwerty\"\n\n\tvar buf bytes.Buffer\n\t// you can use Encrypter like json.Encoder\n\tif err := secret.NewEncrypter(\u0026buf).Encrypt(cfg, masterPassword); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\t// now buf contains encrypted data\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa9084%2Fgo-secret","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnasa9084%2Fgo-secret","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa9084%2Fgo-secret/lists"}