security

package
v0.0.0-...-0e7c249 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scrypt

func Scrypt(data []byte, n, r, p, keyLength int) ([]byte, error)

Scrypt computes scrypt key using data and cost parameters.

func ScryptEquals

func ScryptEquals(data, hash []byte) bool

ScryptEquals compares data with scrypt hash and returns true if they are equal.

func ScryptEqualsBase64

func ScryptEqualsBase64(data []byte, hash string) bool

ScryptEqualsBase64 compares data with scrypt hash encoded as Base64 string

func ScryptToBase64

func ScryptToBase64(data []byte, n, r, p, keyLength int) (string, error)

ScryptToBase64 computes scrypt key and returns the Base64 encoded result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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