crypt

package
v0.0.0-...-df570b3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 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