sha512

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2014 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package sha512_crypt implements Ulrich Drepper's SHA512-crypt password hashing algorithm.

The specification for this algorithm can be found here: http://www.akkadia.org/drepper/SHA-crypt.txt

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cost added in v1.0.0

func Cost(hash []byte) (int, error)

func New

func New(key, s []byte) (result []byte, err error)

New() creates a sha512-crypt hash of key, using salt s

func NewWithPrefix added in v1.0.0

func NewWithPrefix(prefix string, key, s []byte) (result []byte, err error)

NewWithPrefix() calls New() and prepends prefix to result

func Verify added in v1.0.0

func Verify(hash, key []byte) (ok bool, err error)

Verify() checks whether key is valid for hash hashedKey

func VerifyWithPrefix added in v1.0.0

func VerifyWithPrefix(prefix string, hashWithPrefix, key []byte) (ok bool, err error)

VerifyWithPrefix() verifies a hash prefixed with a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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