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

crypter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 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