Documentation ¶
Overview ¶
Package scrypt provides salt generation, hashing and verification for x/crypto/scrypt.
Index ¶
Constants ¶
View Source
const ( Identifier = "scrypt" Identifier_Linux = "7" Prefix = "$" + Identifier + "$" Prefix_Linux = "$" + Identifier_Linux + "$" )
Identifiers and prefixes that describe and scrypt encoded hash string.
View Source
const Format = "$%s$ln=%d,r=%d,p=%d$%s$%s"
Format of the Modular Crypt Format, as used by passlib. See https://passlib.readthedocs.io/en/stable/lib/passlib.hash.scrypt.html#format-algorithm
Variables ¶
View Source
var (
RecommendedParams = Params{
N: 32768,
R: 8,
P: 1,
KeyLen: 32,
SaltLen: 16,
}
)
View Source
var Verifier = verifier.VerifyFunc(Verify)
Verifier for Scrypt.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.