Add TuxiNet branding and document templates
This commit is contained in:
16
app/Support/PasswordHasher.php
Normal file
16
app/Support/PasswordHasher.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
class PasswordHasher
|
||||
{
|
||||
public static function make(string $password): string
|
||||
{
|
||||
return password_hash($password, PASSWORD_ARGON2ID);
|
||||
}
|
||||
|
||||
public static function verify(string $password, string $hash): bool
|
||||
{
|
||||
return password_verify($password, $hash);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user