crypter

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2015 License: MPL-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKey

func NewKey(kind string) ([]byte, error)

Types

type Crypter

type Crypter interface {
	EncryptAndSign([]byte) ([]byte, error)
	ValidateAndDecrypt([]byte) ([]byte, error)
}

func NewCrypter

func NewCrypter(kind string, key []byte) (Crypter, error)

type NoCrypterError

type NoCrypterError struct {
	Kind string
}

func (NoCrypterError) Error

func (e NoCrypterError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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