vault

package
v0.0.0-...-ed407fa Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2017 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(d []byte, key string) ([]byte, error)

func IsSecret

func IsSecret(b []byte) bool

Types

type Secret

type Secret struct {
	Chipher []byte `json:"chipher"`
	Mac     []byte `json:"mac"`
	// contains filtered or unexported fields
}

func New

func New(p []byte) *Secret

func NewString

func NewString(s string) *Secret

func (*Secret) Decrypt

func (s *Secret) Decrypt(key string) ([]byte, error)

func (*Secret) Encrypt

func (s *Secret) Encrypt(key string) error

Jump to

Keyboard shortcuts

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