package
Version:
v0.0.0-...-0e7c249
Opens a new window with list of versions in this module.
Published: Mar 29, 2019
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Scrypt(data []byte, n, r, p, keyLength int) ([]byte, error)
-
func ScryptEquals(data, hash []byte) bool
-
func ScryptEqualsBase64(data []byte, hash string) bool
-
func ScryptToBase64(data []byte, n, r, p, keyLength int) (string, error)
Scrypt computes scrypt key using data and cost parameters.
func ScryptEquals(data, hash []byte) bool
ScryptEquals compares data with scrypt hash and returns true if they are equal.
ScryptEqualsBase64 compares data with scrypt hash encoded as Base64 string
ScryptToBase64 computes scrypt key and returns the Base64 encoded result.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.