Skip to main content

Module phpass

Module phpass 

Source
Expand description

The pieces of phpass (Openwall’s Portable PHP password hashing framework 0.5) that Utopia\Auth\Hashes\PHPass implements in PHP: its base64 variant, its blowfish salt and the MD5 rounds of its portable ($P$, phpBB’s $H$) hashes.

PHP reads a string offset past the end as "" with the warning Uninitialized string offset N; these functions read it the same way and report each such offset to warn, in the order PHP raises them.

Constants§

ITOA64
The alphabet of phpass’s base64 (PHPass::$itoa64).

Functions§

blowfish_salt
The salt characters gensaltBlowfish() appends after $2a$NN$: 16 bytes of input in crypt_blowfish’s base64 (22 characters). Offsets past the end of input are reported.
encode64
PHPass::encode64($input, $count) with $this->itoa64 as itoa64, for count of at least 1 (the method throws below that). Offsets past the end of input are reported to warn_input, past the end of itoa64 to warn_itoa64.
md5_raw
md5($data, true).
md5_rounds
The MD5 rounds of a portable hash: md5($salt . $password, true), then count times md5($hash . $password, true).