keyderivation

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: BSD-3-Clause Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(password, key string) bool

Check takes the password and the encoded key and checks if the combination matches

func Hash

func Hash(password string) (key string, err error)

Hash creates a random 16 character salt and creates a key using this salt Key generation function: SHA512 with 5000 iterations If you want to generate the same key on the commandline: `echo "user:password" | chpasswd -c SHA512 -S | cut -d: -f 2`

Types

This section is empty.

Directories

Path Synopsis
Package crypt provides interface for password crypt functions and collects common constants.
Package crypt provides interface for password crypt functions and collects common constants.
sha512crypt
Package sha512crypt implements Ulrich Drepper's SHA512-crypt password hashing algorithm.
Package sha512crypt implements Ulrich Drepper's SHA512-crypt password hashing algorithm.

Jump to

Keyboard shortcuts

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