zcrypt

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ExitCodeOK = 0
	ExitCodeNG = 1

	Name = "zcrypt"
)
View Source
const Version string = "v0.1.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	OutStream, ErrStream io.Writer
}

func (*CLI) Run

func (cli *CLI) Run(args []string) int

type Decryptor

type Decryptor struct {
	Block cipher.Block
}

func NewDecryptor

func NewDecryptor(key string) (*Decryptor, error)

func (*Decryptor) Exec

func (e *Decryptor) Exec(input []byte) (output []byte, err error)

type Encryptor

type Encryptor struct {
	Block cipher.Block
}

func NewEncryptor

func NewEncryptor(key string) (*Encryptor, error)

func (*Encryptor) Exec

func (e *Encryptor) Exec(input []byte) (output []byte, err error)

type Zcrypt

type Zcrypt interface {
	Exec([]byte) ([]byte, error)
}

Jump to

Keyboard shortcuts

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