add services logic

This commit is contained in:
root
2026-03-11 01:38:20 -04:00
parent 182036cc41
commit 3e6c577085
47 changed files with 918 additions and 1772 deletions
@@ -0,0 +1,18 @@
<?php
namespace Tests\Unit\Services\Security;
use App\Services\Security\Pbkdf2Hasher;
use Tests\TestCase;
class Pbkdf2HasherTest extends TestCase
{
public function test_hash_and_verify(): void
{
$hasher = new Pbkdf2Hasher();
$hash = $hasher->hash('secret');
$this->assertTrue($hasher->verify('secret', $hash));
$this->assertFalse($hasher->verify('wrong', $hash));
}
}