Documentation
¶
Overview ¶
Package sha2 provides hashing and verification of SHA-256 and SHA-512 encoded passwords with salt based on crypt(3). [The algorithm](https://www.akkadia.org/drepper/SHA-crypt.txt) builds hashes through multiple digest iterations with shuffles of password and salt.
Index ¶
Constants ¶
View Source
const ( Sha256Identifier = "$5$" Sha512Identifier = "$6$" SaltLenMin = 1 SaltLenMax = 16 RoundsMin = 1000 RoundsMax = 999999999 RoundsDefault = 5000 )
Variables ¶
View Source
var Verifier = verifier.VerifyFunc(Verify)
Verifier for sha2.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.