password

package module
v0.0.0-...-abe1582 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2015 License: BSD-3-Clause, MIT Imports: 13 Imported by: 0

README

password GoDoc Build Status

Documentation.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSalt

func GenerateSalt(size int) ([]byte, error)

Types

type Password

type Password string

func Encrypt

func Encrypt(password string, rounds int, salt []byte) Password

func (Password) Rounds

func (p Password) Rounds() int

func (Password) Salt

func (p Password) Salt() []byte

func (Password) Split

func (p Password) Split() (rounds int, salt []byte, hash []byte)

func (Password) Verify

func (p Password) Verify(password string) bool

Jump to

Keyboard shortcuts

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