Neos\Flow\Tests\Unit\Security\Cryptography\RsaWalletServicePhpTest::signAndVerifySignatureBasicallyWorks PHP Méthode

signAndVerifySignatureBasicallyWorks() public méthode

    public function signAndVerifySignatureBasicallyWorks()
    {
        $plaintext = 'trustworthy data!';
        $signature = $this->rsaWalletService->sign($plaintext, $this->keyPairUuid);
        $this->assertTrue($this->rsaWalletService->verifySignature($plaintext, $signature, $this->keyPairUuid));
        $this->assertFalse($this->rsaWalletService->verifySignature('modified data!', $signature, $this->keyPairUuid));
    }