/** * Test for PMA\libraries\plugins\auth\AuthenticationConfig::cookieDecrypt * * @return void */ public function testCookieDecrypt() { $this->object->setIV('testiv09testiv09'); // works with the openssl extension active or inactive $this->assertEquals('data123', $this->object->cookieDecrypt('+coP/up/ZBTBwbiEpCUVXQ==', 'sec321')); }
/** * Test for secret splitting using getMACSecret and getAESSecret * * @return void * * @dataProvider secretsProvider */ public function testAESSecretSplit($secret, $mac, $aes) { $this->assertEquals($aes, $this->object->getAESSecret($secret)); }