Documentation ¶
Overview ¶
Package phpass Provides the ability to create and validate PHPass hashed passwords. See http://www.openwall.com/phpass/ for more details. The code here is more or less a direct port of the PHP implimentation found inside the official download. Or will be once it has been completed.
The code as it stands is not 100% complete in that it does not work with all of the options that can/should be speficied. It does work with the default options, and is compatible with WordPress's use of PHPass for hasing passwords in the database
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config represents the configuration options that PHPass takes Note that these are, essentially, ignored right now.
type Hash ¶
Hash allows you to hash, and validate PHPass hashed passwords. The Hash structure is not thread safe. If you plan to use a single hasher you'll want to synchronize with your own syc.Mutex
func New ¶
New returns a new Hash structure against which you can make Hash() and Check() calls for creating and validating PHPass hashed passwords. If you pass nil as the config a default config will be provided for you.