sshkeys

package
v0.0.0-...-ebf9046 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeyPair

func GenerateKeyPair() (privateKey string, publicKey string, err error)

GenerateKeyPair generates an Ed25519 SSH key pair in memory and returns the private and public keys as strings. Nothing is written to disk.

privateKey: PEM-encoded private key (OpenSSH format). publicKey: Authorized-keys style single line (e.g. "ssh-ed25519 AAAA...").

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL