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 ofinputin crypt_blowfish’s base64 (22 characters). Offsets past the end ofinputare reported. - encode64
PHPass::encode64($input, $count)with$this->itoa64asitoa64, forcountof at least 1 (the method throws below that). Offsets past the end ofinputare reported towarn_input, past the end ofitoa64towarn_itoa64.- md5_raw
md5($data, true).- md5_
rounds - The MD5 rounds of a portable hash:
md5($salt . $password, true), thencounttimesmd5($hash . $password, true).