10 lines
260 B
PHP
10 lines
260 B
PHP
|
<?php
|
||
|
class Hashing {
|
||
|
public static function hashPassword($password) {
|
||
|
return password_hash($password, PASSWORD_DEFAULT);
|
||
|
}
|
||
|
|
||
|
public static function verifyPassword($password, $hash) {
|
||
|
return password_verify($password, $hash);
|
||
|
}
|
||
|
}
|