Differential D8270 Diff 19684 src/infrastructure/util/password/PhabricatorIteratedMD5PasswordHasher.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/util/password/PhabricatorIteratedMD5PasswordHasher.php
<?php | <?php | ||||
final class PhabricatorIteratedMD5PasswordHasher | final class PhabricatorIteratedMD5PasswordHasher | ||||
extends PhabricatorPasswordHasher { | extends PhabricatorPasswordHasher { | ||||
public function getHumanReadableName() { | public function getHumanReadableName() { | ||||
return pht('Iterated MD5'); | return pht('Iterated MD5'); | ||||
} | } | ||||
public function getHashName() { | public function getHashName() { | ||||
return 'md5'; | return 'md5'; | ||||
} | } | ||||
public function getHashLength() { | public function getHashLength() { | ||||
return 40; | return 32; | ||||
epriestley: The output of md5() has length 32, not 40. | |||||
} | } | ||||
public function canHashPasswords() { | public function canHashPasswords() { | ||||
return function_exists('md5'); | return function_exists('md5'); | ||||
} | } | ||||
public function getInstallInstructions() { | public function getInstallInstructions() { | ||||
// This should always be available, but do something useful anyway. | // This should always be available, but do something useful anyway. | ||||
Show All 23 Lines |
The output of md5() has length 32, not 40.