This commit is contained in:
hashbro
2026-08-24 06:23:07 +08:00
parent c00396dc1f
commit db574cc629
114 changed files with 108297 additions and 266 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace Tests\Unit;
use App\Support\Scrypt;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class ScryptTest extends TestCase
{
#[Test]
public function rfc7914_empty_password_vector(): void
{
$out = Scrypt::hash('', '', 16, 1, 1, 64);
$this->assertSame(
'77d6576238657b203b19ca42c18a0497f16b4844e3074ae8dfdffa3fede21442'
.'fcd0069ded0948f8326a753a0fc81f17e8d3e0fb2e0d3628cf35e20c38d18906',
bin2hex($out)
);
}
}