sshencode

package
v0.0.0-...-86e8056 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

Agent ...

func Configure

func Configure(sshKeyPrefix string) (*Agent, error)

Configure builds out an agent struct that can be used to

easily encrypt/decrypt via methods afterwards

func (*Agent) Decrypt

func (a *Agent) Decrypt(b []byte) ([]byte, error)

Decrypt receives bytes and decrypts them into a string

func (*Agent) Encrypt

func (a *Agent) Encrypt(b []byte) ([]byte, error)

Encrypt receives bytes, encrypts them with the private key,

and returns bytes, all whilst using the SSH Agent

Jump to

Keyboard shortcuts

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