ok

Mini Shell

Direktori : /proc/self/root/home2/selectio/www/billingsoftwarenew/core/vendor/lcobucci/jwt/src/Signer/
Upload File :
Current File : //proc/self/root/home2/selectio/www/billingsoftwarenew/core/vendor/lcobucci/jwt/src/Signer/Rsa.php

<?php
declare(strict_types=1);

namespace Lcobucci\JWT\Signer;

use const OPENSSL_KEYTYPE_RSA;

abstract class Rsa extends OpenSSL
{
    final public function sign(string $payload, Key $key): string
    {
        return $this->createSignature($key->contents(), $key->passphrase(), $payload);
    }

    final public function verify(string $expected, string $payload, Key $key): bool
    {
        return $this->verifySignature($expected, $payload, $key->contents());
    }

    final public function keyType(): int
    {
        return OPENSSL_KEYTYPE_RSA;
    }
}

Zerion Mini Shell 1.0