feat: ds
This commit is contained in:
@@ -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)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user