PATH:
home
/
lab2454c
/
costbloc.com
/
vendor
/
lcobucci
/
jwt
/
src
/
Signer
<?php declare(strict_types=1); namespace Lcobucci\JWT\Signer; use Lcobucci\JWT\Signer; use function hash_equals; use function hash_hmac; abstract class Hmac implements Signer { final public function sign(string $payload, Key $key): string { return hash_hmac($this->algorithm(), $payload, $key->contents(), true); } final public function verify(string $expected, string $payload, Key $key): bool { return hash_equals($expected, $this->sign($payload, $key)); } abstract public function algorithm(): string; }
[-] InvalidKeyProvided.php
[edit]
[-] CannotSignPayload.php
[edit]
[-] OpenSSL.php
[edit]
[+]
Key
[+]
..
[-] Hmac.php
[edit]
[-] Rsa.php
[edit]
[-] Key.php
[edit]
[+]
Rsa
[+]
Hmac
[-] None.php
[edit]
[-] Ecdsa.php
[edit]
[+]
Ecdsa