keygen
keygen copied to clipboard
An SSH key pair generator ๐๏ธ
Keygen
An SSH key pair generator with password protected keys support. Supports generating RSA, ECDSA, and Ed25519 keys.
Example
filepath := filepath.Join(".ssh", "my_awesome_key")
passphrase := []byte("awesome_secret")
k, err := NewWithWrite(filepath, passphrase, key.Ed25519)
if err != nil {
fmt.Printf("error creating SSH key pair: %v", err)
os.Exit(1)
}
fmt.Printf("Your authorized key: %s\n", string(k.PublicKey()))
Feedback
Weโd love to hear your thoughts on this project. Feel free to drop us a note!
License
Part of Charm.
Charm็ญ็ฑๅผๆบ โข Charm loves open source
