protected function generateSalt() { $salt = parent::generateSalt(); $prefix = static::getPrefix(); $prefix .= str_pad($this->iterations, 2, '0', STR_PAD_LEFT); return $prefix . '$' . $salt; }
protected function generateSalt() { $salt = parent::generateSalt(); return '$5$rounds=' . $this->options['rounds'] . '$' . $salt; }
/** * @covers PasswordLib\Password\Implementation\Crypt */ public function testCreateAndVerify() { $hash = new Crypt(10); $test = $hash->create('Foobar'); $this->assertTrue($hash->verify('Foobar', $test)); }
protected function generateSalt() { $salt = parent::generateSalt(); return '$1$' . $salt; }
protected function generateSalt() { $salt = parent::generateSalt(); return '$6$rounds=' . $this->iterations . '$' . $salt; }