MCPcopy Index your code
hub / github.com/charmbracelet/keygen

github.com/charmbracelet/keygen @v0.5.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.5.4 ↗ · + Follow
56 symbols 217 edges 2 files 34 documented · 61% 8 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Keygen

Latest Release GoDoc Build Status Go ReportCard

An SSH key pair generator with password protected keys support. Supports generating RSA, ECDSA, and Ed25519 keys.

Example

kp, err := keygen.New(
    "awesome",
    keygen.WithPassphrase("awesome_secret"),
    keygen.WithKeyType(keygen.Ed25519),
)
if err != nil {
    log.Fatalf("error creating SSH key pair: %v", err)
}
fmt.Printf("Your authorized key: %s\n", kp.AuthorizedKey())

Contributing

See contributing.

Feedback

We’d love to hear your thoughts on this project. Feel free to drop us a note!

License

MIT


Part of Charm.

The Charm logo

Charm热爱开源 • Charm loves open source

Extension points exported contracts — how you extend this code

Option (FuncType)
Option is a functional option for KeyPair.
keygen.go

Core symbols most depended-on inside this repo

Error
called by 12
keygen.go
privateKeyPath
called by 12
keygen.go
New
called by 11
keygen.go
WithKeyType
called by 10
keygen.go
WriteKeys
called by 7
keygen.go
publicKeyPath
called by 6
keygen.go
AuthorizedKey
called by 6
keygen.go
WithPassphrase
called by 5
keygen.go

Shape

Method 26
Function 24
Struct 4
FuncType 1
TypeAlias 1

Languages

Go100%

Modules by API surface

keygen.go42 symbols
keygen_test.go14 symbols

For agents

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

⬇ download graph artifact