security

package
v0.0.0-...-d4b0fe3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SaltLength   = 128 // Bytes
	SaltFileName = "salt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Salt []byte
	// contains filtered or unexported fields
}

func NewContext

func NewContext(outputDir string, withCrypto bool) (*Context, error)

func (*Context) Decode

func (ctx *Context) Decode(input []byte) (output []byte, err error)

func (*Context) Encode

func (ctx *Context) Encode(input []byte) ([]byte, error)

func (*Context) NewHasher

func (ctx *Context) NewHasher() (hash.Hash, error)

Jump to

Keyboard shortcuts

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