crypt

package
v0.0.0-...-6d3478e Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultHashComplexity defines the default complexity to be using for hashing
	// using the dccrypt hashing method.
	DefaultHashComplexity = 10
)

Functions

func BcryptAuthenticate

func BcryptAuthenticate(expected, provided []byte) error

BcryptAuthenticate attempts to validate expected value which is already encrypted using the bcrypt hash.The expected value is the already hashed value and the provided wukk be hashed and compared to validate if its a valid value.

func BcryptGenerate

func BcryptGenerate(content []byte, hashComplexity int) ([]byte, error)

BcryptGenerate returns a value encrypted using the bcrypt hashing algorithmn, it takes all provided values to generate final output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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