1.2 KiB
1.2 KiB
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)
}
License
Part of Charm.
Charm热爱开源 • Charm loves open source