Bitpay\Crypto\McryptExtensionTest::testDecrypt PHP Method

testDecrypt() public method

public testDecrypt ( )
    public function testDecrypt()
    {
        $mcrypt = new McryptExtension();
        $key = 'testEncrypt';
        $data = array('lsdkjflaslkfslj' => 'kz2DG4D3vkA6bkDbhrvD+Q==', 'a340932084093280' => 'gNaNgXFc7ecle8SaAJAJOw==', '*&($*@*%&*$*#*&@(*#*(' => 'cVGF2lnyH6OHLYWHa+8XxHbFzVNK5IYL', '___asdfa234($*(#__' => 'I8OFg5parn9b0Qk8mJnQH0+SgQWwYER5');
        foreach ($data as $unencrypted => $encrypted) {
            $plaintext = $mcrypt->decrypt($encrypted, $key, '00000000');
            $this->assertEquals($unencrypted, $plaintext);
        }
    }