Help us shape the future of Go! Take the 2026 Go Developer Survey

sshutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RSA_BITS     = 2048 // Default number of bits in an RSA key
	RSA_BITS_MIN = 768  // Minimum number of bits in an RSA key
)

Variables

This section is empty.

Functions

func GeneratePrivateKey

func GeneratePrivateKey() (*rsa.PrivateKey, error)

helper function to generate an RSA Private Key.

func MarshalPrivateKey

func MarshalPrivateKey(privkey *rsa.PrivateKey) string

helper function that marshalls an RSA Private Key to a PEM encoded file.

func MarshalPublicKey

func MarshalPublicKey(pubkey *rsa.PublicKey) string

helper function that marshalls an RSA Public Key to an SSH .authorized_keys format

Types

This section is empty.

Jump to

Keyboard shortcuts

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