crypto

package
v0.0.0-...-db6c267 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWrongPass = errors.New("incorrect passphrase")

Functions

func Clear

func Clear(secret []byte)

Clear removes sensitive data from memory (useful for plaintext passwords etc.).

func ReadRand

func ReadRand(b []byte) error

ReadRand fills b with entropy taken from the CSPRNG in crypto/rand.

func ReadStore

func ReadStore(in io.Reader, passphrase []byte) (s *store.Store, err error)

ReadStore decrypts an input stream and returns a constructed password store object.

func WriteStore

func WriteStore(out io.Writer, s *store.Store, passphrase []byte) (err error)

WriteStore encrypts and writes a password store object to an output stream.

Types

This section is empty.

Jump to

Keyboard shortcuts

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