* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* Returns the hashed password, hashed with a given salt.
*/
private function hashWithSalt(string $password, string $salt): string {
- return md5(md5($password) . $salt);
+ return \md5(\md5($password) . $salt);
}
/**
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* Returns the hashed password, hashed with a given salt.
*/
private function hashWithSalt(string $password, string $salt): string {
- return md5(md5($salt) . md5($password));
+ return \md5(\md5($salt) . \md5($password));
}
/**
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* Returns the hashed password, hashed with a given salt.
*/
private function hashWithSalt(string $password, string $salt): string {
- return md5($password . $salt);
+ return \md5($password . $salt);
}
/**
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* Returns the hashed password, hashed with a given salt.
*/
private function hashWithSalt(string $password, string $salt): string {
- return md5($password . $salt);
+ return \md5($password . $salt);
}
/**
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* Returns the hashed password, hashed with a given salt.
*/
private function hashWithSalt(string $password, string $salt): string {
- return md5($password . $salt);
+ return \md5($password . $salt);
}
/**
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* Returns the hashed password, hashed with a given salt.
*/
private function hashWithSalt(string $password, string $salt): string {
- return md5(md5($salt) . md5($password));
+ return \md5(\md5($salt) . \md5($password));
}
/**
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* Returns the hashed password, hashed with a given salt.
*/
private function hashWithSalt(string $password, string $salt): string {
- return sha1($salt . $password);
+ return \sha1($salt . $password);
}
/**
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* Returns the hashed password, hashed with a given salt.
*/
private function hashWithSalt(string $password, string $salt): string {
- return sha1($salt . $password);
+ return \sha1($salt . $password);
}
/**
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* Returns the hashed password, hashed with a given salt.
*/
private function hashWithSalt(string $password, string $salt): string {
- return md5(md5($password) . $salt);
+ return \md5(\md5($password) . $salt);
}
/**
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* Returns the hashed password, hashed with a given salt.
*/
private function hashWithSalt(string $password, string $salt): string {
- return md5(md5($password) . $salt);
+ return \md5(\md5($password) . $salt);
}
/**
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* Returns the hashed password, hashed with a given salt.
*/
private function hashWithSalt(string $password, string $salt): string {
- return md5(md5($password) . $salt);
+ return \md5(\md5($password) . $salt);
}
/**
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- if (\hash_equals($hash, md5($password))) {
+ if (\hash_equals($hash, \md5($password))) {
return true;
}
- else if (\hash_equals($hash, sha1($password))) {
+ else if (\hash_equals($hash, \sha1($password))) {
return true;
}
* @inheritDoc
*/
public function hash(string $password): string {
- return sha1($password);
+ return \sha1($password);
}
/**
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* Returns the hashed password, hashed with a given salt.
*/
private function hashWithSalt(string $password, string $salt): string {
- return sha1($salt . sha1($salt . sha1($password)));
+ return \sha1($salt . \sha1($salt . \sha1($password)));
}
/**
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
return \hash_equals($hash, $this->hashWithSalt($password, $salt));
}
* @inheritDoc
*/
public function verify(string $password, string $hash): bool {
- [$hash, $salt] = explode(':', $hash, 2);
+ [$hash, $salt] = \explode(':', $hash, 2);
if (\hash_equals($hash, \sha1(\sha1($password) . $salt))) {
return true;