diff --git a/tests/Crypto/CleartextTest.php b/tests/Crypto/CleartextTest.php index d4eaaef..67d5547 100644 --- a/tests/Crypto/CleartextTest.php +++ b/tests/Crypto/CleartextTest.php @@ -43,6 +43,12 @@ class CleartextTest extends TestCase $this->assertTrue($this->crypto->checkPassword("password", "password")); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/CourierMD5RawTest.php b/tests/Crypto/CourierMD5RawTest.php index fe30008..5f443a7 100644 --- a/tests/Crypto/CourierMD5RawTest.php +++ b/tests/Crypto/CourierMD5RawTest.php @@ -47,6 +47,12 @@ class CourierMD5RawTest extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/CourierMD5Test.php b/tests/Crypto/CourierMD5Test.php index 0d1e82d..66d3d82 100644 --- a/tests/Crypto/CourierMD5Test.php +++ b/tests/Crypto/CourierMD5Test.php @@ -47,6 +47,12 @@ class CourierMD5Test extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/CourierSHA1Test.php b/tests/Crypto/CourierSHA1Test.php index 0621655..b60c3bc 100644 --- a/tests/Crypto/CourierSHA1Test.php +++ b/tests/Crypto/CourierSHA1Test.php @@ -47,6 +47,12 @@ class CourierSHA1Test extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/CourierSHA256Test.php b/tests/Crypto/CourierSHA256Test.php index ee86310..05cebe8 100644 --- a/tests/Crypto/CourierSHA256Test.php +++ b/tests/Crypto/CourierSHA256Test.php @@ -48,6 +48,12 @@ class CourierSHA256Test extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/CryptArgon2Test.php b/tests/Crypto/CryptArgon2Test.php index 7a44ddd..39855fe 100644 --- a/tests/Crypto/CryptArgon2Test.php +++ b/tests/Crypto/CryptArgon2Test.php @@ -48,6 +48,12 @@ class CryptArgon2Test extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/CryptBlowfishTest.php b/tests/Crypto/CryptBlowfishTest.php index ea4dc0c..1b878fd 100644 --- a/tests/Crypto/CryptBlowfishTest.php +++ b/tests/Crypto/CryptBlowfishTest.php @@ -48,6 +48,12 @@ class CryptBlowfishTest extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/CryptExtendedDESTest.php b/tests/Crypto/CryptExtendedDESTest.php index 31ca7c1..c5627e0 100644 --- a/tests/Crypto/CryptExtendedDESTest.php +++ b/tests/Crypto/CryptExtendedDESTest.php @@ -45,6 +45,12 @@ class CryptExtendedDESTest extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/CryptMD5Test.php b/tests/Crypto/CryptMD5Test.php index 0a6f405..aadc429 100644 --- a/tests/Crypto/CryptMD5Test.php +++ b/tests/Crypto/CryptMD5Test.php @@ -47,6 +47,12 @@ class CryptMD5Test extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/CryptSHA256Test.php b/tests/Crypto/CryptSHA256Test.php index 020bb61..b40736d 100644 --- a/tests/Crypto/CryptSHA256Test.php +++ b/tests/Crypto/CryptSHA256Test.php @@ -48,6 +48,12 @@ class CryptSHA256Test extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/CryptSHA512Test.php b/tests/Crypto/CryptSHA512Test.php index 7667d1f..6ea1035 100644 --- a/tests/Crypto/CryptSHA512Test.php +++ b/tests/Crypto/CryptSHA512Test.php @@ -48,6 +48,12 @@ class CryptSHA512Test extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/CryptStandardDESTest.php b/tests/Crypto/CryptStandardDESTest.php index ca8712b..b8d8cbf 100644 --- a/tests/Crypto/CryptStandardDESTest.php +++ b/tests/Crypto/CryptStandardDESTest.php @@ -45,6 +45,12 @@ class CryptStandardDESTest extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/CryptTest.php b/tests/Crypto/CryptTest.php index f556289..680b6cc 100644 --- a/tests/Crypto/CryptTest.php +++ b/tests/Crypto/CryptTest.php @@ -48,6 +48,12 @@ class CryptTest extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/JoomlaTest.php b/tests/Crypto/JoomlaTest.php index feaa96e..0777c3d 100644 --- a/tests/Crypto/JoomlaTest.php +++ b/tests/Crypto/JoomlaTest.php @@ -48,6 +48,12 @@ class JoomlaTest extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/MD5Test.php b/tests/Crypto/MD5Test.php index d8f2950..d302752 100644 --- a/tests/Crypto/MD5Test.php +++ b/tests/Crypto/MD5Test.php @@ -47,6 +47,12 @@ class MD5Test extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/PhpassTest.php b/tests/Crypto/PhpassTest.php index 22b1ecc..6ef9c42 100644 --- a/tests/Crypto/PhpassTest.php +++ b/tests/Crypto/PhpassTest.php @@ -47,6 +47,12 @@ class PhpassTest extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/SHA1Test.php b/tests/Crypto/SHA1Test.php index 2ed51ab..bdee003 100644 --- a/tests/Crypto/SHA1Test.php +++ b/tests/Crypto/SHA1Test.php @@ -47,6 +47,12 @@ class SHA1Test extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/SHA512WhirlpoolTest.php b/tests/Crypto/SHA512WhirlpoolTest.php index 558db94..3239776 100644 --- a/tests/Crypto/SHA512WhirlpoolTest.php +++ b/tests/Crypto/SHA512WhirlpoolTest.php @@ -48,6 +48,12 @@ class SHA512WhirlpoolTest extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/SSHA256Test.php b/tests/Crypto/SSHA256Test.php index f26b0e7..e3189d0 100644 --- a/tests/Crypto/SSHA256Test.php +++ b/tests/Crypto/SSHA256Test.php @@ -48,6 +48,12 @@ class SSHA256Test extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp(); diff --git a/tests/Crypto/SSHA512Test.php b/tests/Crypto/SSHA512Test.php index 10cfbd7..b6b5f72 100644 --- a/tests/Crypto/SSHA512Test.php +++ b/tests/Crypto/SSHA512Test.php @@ -48,6 +48,12 @@ class SSHA512Test extends TestCase ); } + public function testPasswordHash() + { + $hash = $this->crypto->getPasswordHash("password"); + $this->assertTrue($this->crypto->checkPassword("password", $hash)); + } + protected function setUp() { parent::setUp();