Project

General

Profile

Bug #22323 » 0013908.diff

Administrator Admin, 2010-03-24 16:59

View differences:

typo3/sysext/saltedpasswords/tests/tx_saltedpasswords_salts_blowfish_testcase.php (working copy)
/**
* @test
*/
public function authenticationWithValidPassword() {
public function authenticationWithValidAlpaCharClassPassword() {
$this->skipTestIfBlowfishIsNotAvailable();
$password = 'password';
$password = 'aEjOtY';
$saltedHashPW = $this->objectInstance->getHashedPassword($password);
$this->assertTrue($this->objectInstance->checkPassword($password, $saltedHashPW));
}
......
/**
* @test
*/
public function authenticationWithValidNumericCharClassPassword() {
$this->skipTestIfBlowfishIsNotAvailable();
$password = '01369';
$saltedHashPW = $this->objectInstance->getHashedPassword($password);
$this->assertTrue($this->objectInstance->checkPassword($password, $saltedHashPW));
}
/**
* @test
*/
public function authenticationWithValidSpecialCharClassPassword() {
$this->skipTestIfBlowfishIsNotAvailable();
$password = '^.!?"?$%#&@<>??(){}[]=\\`?~,;_-+*/:\'???';
$saltedHashPW = $this->objectInstance->getHashedPassword($password);
$this->assertTrue($this->objectInstance->checkPassword($password, $saltedHashPW));
}
/**
* @test
*/
public function authenticationWithValidUmlautCharClassPassword() {
$this->skipTestIfBlowfishIsNotAvailable();
$password = '????????????';
$saltedHashPW = $this->objectInstance->getHashedPassword($password);
$this->assertTrue($this->objectInstance->checkPassword($password, $saltedHashPW));
}
/**
* @test
*/
public function authenticationWithNonValidPassword() {
$this->skipTestIfBlowfishIsNotAvailable();
typo3/sysext/saltedpasswords/tests/tx_saltedpasswords_salts_md5_testcase.php (working copy)
/**
* @test
*/
public function authenticationWithValidPassword() {
$password = 'password';
public function authenticationWithValidAlpaCharClassPassword() {
$password = 'aEjOtY';
$saltedHashPW = $this->objectInstance->getHashedPassword($password);
$this->assertTrue($this->objectInstance->checkPassword($password, $saltedHashPW), $this->getWarningWhenMethodUnavailable());
}
......
/**
* @test
*/
public function authenticationWithValidNumericCharClassPassword() {
$password = '01369';
$saltedHashPW = $this->objectInstance->getHashedPassword($password);
$this->assertTrue($this->objectInstance->checkPassword($password, $saltedHashPW), $this->getWarningWhenMethodUnavailable());
}
/**
* @test
*/
public function authenticationWithValidSpecialCharClassPassword() {
$password = '^.!?"?$%#&@<>??(){}[]=\\`?~,;_-+*/:\'???';
$saltedHashPW = $this->objectInstance->getHashedPassword($password);
$this->assertTrue($this->objectInstance->checkPassword($password, $saltedHashPW), $this->getWarningWhenMethodUnavailable());
}
/**
* @test
*/
public function authenticationWithValidUmlautCharClassPassword() {
$password = '????????????';
$saltedHashPW = $this->objectInstance->getHashedPassword($password);
$this->assertTrue($this->objectInstance->checkPassword($password, $saltedHashPW), $this->getWarningWhenMethodUnavailable());
}
/**
* @test
*/
public function authenticationWithNonValidPassword() {
$password = 'password';
$password1 = $password . 'INVALID';
typo3/sysext/saltedpasswords/tests/tx_saltedpasswords_salts_phpass_testcase.php (working copy)
/**
* @test
*/
public function authenticationWithValidPassword() {
$password = 'password';
public function authenticationWithValidAlpaCharClassPassword() {
$password = 'aEjOtY';
$saltedHashPW = $this->objectInstance->getHashedPassword($password);
$this->assertTrue($this->objectInstance->checkPassword($password, $saltedHashPW));
}
......
/**
* @test
*/
public function authenticationWithValidNumericCharClassPassword() {
$password = '01369';
$saltedHashPW = $this->objectInstance->getHashedPassword($password);
$this->assertTrue($this->objectInstance->checkPassword($password, $saltedHashPW));
}
/**
* @test
*/
public function authenticationWithValidSpecialCharClassPassword() {
$password = '^.!?"?$%#&@<>??(){}[]=\\`?~,;_-+*/:\'???';
$saltedHashPW = $this->objectInstance->getHashedPassword($password);
$this->assertTrue($this->objectInstance->checkPassword($password, $saltedHashPW));
}
/**
* @test
*/
public function authenticationWithValidUmlautCharClassPassword() {
$password = '????????????';
$saltedHashPW = $this->objectInstance->getHashedPassword($password);
$this->assertTrue($this->objectInstance->checkPassword($password, $saltedHashPW));
}
/**
* @test
*/
public function authenticationWithNonValidPassword() {
$password = 'password';
$password1 = $password . 'INVALID';
(1-1/4)