Neos\Flow\Tests\Unit\Security\Cryptography\RsaWalletServicePhpTest::encryptingAndDecryptingBasicallyWorks PHP Метод

encryptingAndDecryptingBasicallyWorks() публичный Метод

    public function encryptingAndDecryptingBasicallyWorks()
    {
        $plaintext = 'some very sensitive data!';
        $ciphertext = $this->rsaWalletService->encryptWithPublicKey($plaintext, $this->keyPairUuid);
        $this->assertNotEquals($ciphertext, $plaintext);
        $this->assertEquals($plaintext, $this->rsaWalletService->decrypt($ciphertext, $this->keyPairUuid));
    }