MCPcopy Create free account
hub / github.com/rsjethani/secret

github.com/rsjethani/secret @v3.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.0.1 ↗ · + Follow
13 symbols 24 edges 2 files 8 documented · 62% 2 cross-repo links updated 23mo agov3.0.1 · 2024-08-16★ 332 open issues

Browse by type

Functions 12 Types & classes 1
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

GoDev Build Status Go Report Card

Installation

go get github.com/rsjethani/secret/v3

What secret is?

It provides simple Go types like Text to securely store secrets. For example:

type Login struct {
    User string
    Password secret.Text
}

The encapsulated secret remains inaccessible to operations like printing, logging, JSON serialization etc. A (customizable) redact hint like ***** is returned instead. The only way to access the actual secret value is by asking explicitly via the .Secret() method. See package documentation more reference and examples.

What secret is not?

  • It is not a secret management service or your local password manager.
  • It is not a Go client to facilitate communication with secret managers like Hashicorp Vault, AWS secret Manager etc. Checkout teller if that is what you are looking for.

Versions

v3

Current version, same functionality as v2 but much cleaner API.

v2

Perfectly usable but no longer maintained.

v1

Deprecated.

Core symbols most depended-on inside this repo

Shape

Function 8
Method 4
Struct 1

Languages

Go100%

Modules by API surface

secret.go8 symbols
example_test.go5 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add secret \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page