6 declare(strict_types=1);
20 \
Magento\Framework\Encryption\Encryptor::class
36 $initial = md5(uniqid());
38 $this->assertNotEquals($initial, $encrypted);
39 $this->assertEquals($initial,
$encryptor->decrypt($encrypted));
44 $validKey = md5(uniqid());
45 $this->_model->validateKey($validKey);
53 $invalidKey =
'---- ';
54 $this->_model->validateKey($invalidKey);
60 $hash = $this->_model->getHash($password,
true);
62 $this->assertTrue(is_string($hash));
63 $this->assertTrue($this->_model->validateHash($password, $hash));
static getObjectManager()