common

package
v0.4.17 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenKeyPair

func GenKeyPair() ([]byte, []byte, error)

generate a KeyPair with 4KB length returns: privateKeyBytes, publicKeyBytes, error

func MakePublicKeyFromPrivateKey

func MakePublicKeyFromPrivateKey(pem string) (string, error)

ParseKey reads the given RSA private key and create a public one for it.

func SaveKey

func SaveKey(keyBytes []byte, targetFile string) error

save a key to a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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