Larastan: Update CryptoTest.php - REVIEW

pull/6286/head
Shlee 2 weeks ago committed by GitHub
parent cc90df9d8c
commit 0e0f3b9e95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -23,7 +23,9 @@ class CryptoTest extends TestCase
public function RSASigning()
{
$rsa = new RSA();
extract($rsa->createKey());
$keys = $rsa->createKey();
$privatekey = $keys['privatekey'];
$publickey = $keys['publickey'];
$rsa->loadKey($privatekey);
$plaintext = 'pixelfed rsa test';
$signature = $rsa->sign($plaintext);

Loading…
Cancel
Save