Keygen
An SSH key pair generator ποΈ
Install / Use
/learn @charmbracelet/KeygenREADME
Keygen
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
Part of Charm.
<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>
Charmηη±εΌζΊ β’ Charm loves open source
