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

pki

package
v0.11.9 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BITS = 2048

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(message string, priv *rsa.PrivateKey) []byte

func Encrypt

func Encrypt(message string, priv *rsa.PrivateKey) string

func GetPrivateKey

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

Types

type Key

type Key struct {
	// contains filtered or unexported fields
}

func New

func New() (Key, error)

func (Key) PrivateKeyToPemString

func (k Key) PrivateKeyToPemString() string

func (Key) PublicKeyToPemString

func (k Key) PublicKeyToPemString() string

Jump to

Keyboard shortcuts

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