subject | groups | revs | best | mean | mode | worst | params |
---|---|---|---|---|---|---|---|
sign | JWS,EdDSA,Ed25519 | 4096 | 293.045μs | 293.045μs | 293.045μs | 293.045μs | {"algorithm":"EdDSA"} |
verify | JWS,EdDSA,Ed25519 | 4096 | 398.441μs | 398.441μs | 398.441μs | 398.441μs | {"input":"eyJhbGciOiJFZERTQSJ9.SXTigJlzIGEgZGFuZ2Vyb3VzIGJ1c2luZXNzLCBGcm9kbywgZ29pbmcgb3V0IHlvdXIgZG9vci4gWW91IHN0ZXAgb250byB0aGUgcm9hZCwgYW5kIGlmIHlvdSBkb24ndCBrZWVwIHlvdXIgZmVldCwgdGhlcmXigJlzIG5vIGtub3dpbmcgd2hlcmUgeW91IG1pZ2h0IGJlIHN3ZXB0IG9mZiB0by4.zwhKxTMnLVgl0KSn9GT2ongThN0hOZkp046k3S296_TKwAXZH3n4OGMavgUgmuhXER3_zRz-nBqJMfUDIoRHBQ"} |
sign | JWS,ECDSA,ES256 | 4096 | 1,676.358μs | 1,676.358μs | 1,676.358μs | 1,676.358μs | {"algorithm":"ES256"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use Castor\Attribute\AsOption; | |
use Castor\Attribute\AsTask; | |
use function Castor\io; | |
use function Castor\run; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sandbox.js:48 [Deprecation] 'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead. | |
clone @ sandbox.js:48 | |
exec @ sandbox.js:62 | |
loadTestList @ load.js:242 | |
$.click @ controller.js:318 | |
dispatch @ jquery.min.js:3 | |
q.handle @ jquery.min.js:3 | |
controller.js:331 Test started: P-1 | |
Get ServerPublicKeyCredentialCreationOptionsResponse, and check that: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function truncate($value, $length = 30, $preserve = false, $separator = '...') | |
{ | |
if ($length < strlen($value)) { | |
if (true === $preserve) { | |
if (false === ($breakpoint = strpos($value, ' ', $length))) { | |
return $value; | |
} | |
$length = $breakpoint; |
benchmark | groups | subject | mean | best | worst | params |
---|---|---|---|---|---|---|
A128GCMKWBench | JWE,A128GCMKW | benchEncryption | 193.550μs | 193.550μs | 193.550μs | {"payload":"It\u2019s a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there\u2019s no knowing where you might be swept off to.","shared_protected_headers":{"alg":"A128GCMKW","enc":"A128CBC-HS256"},"shared_headers":[],"recipient_headers":[],"recipient_key":{"kty":"oct","k":"GZy6sIZ6wl9NJOKB-jnmVQ"}} |
A128GCMKWBench | JWE,A128GCMKW | benchEncryption | 191.550μs | 191.550μs | 191.550μs | {"payload":"It\u2019s a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there\u2019s no knowing where you might be swept off to.","shared_protected_headers":{"alg":"A128GCMKW","enc":"A192 |
Only for ECDH-ES encryption process.
benchmark | groups | subject | params | mean | best | worst |
---|---|---|---|---|---|---|
ECDHESBench | JWE,ECDHES | benchEncryption | {"payload":"It\u2019s a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there\u2019s no knowing where you might be swept off to.","shared_protected_headers":{"alg":"ECDH-ES","enc":"A128CBC-HS256"},"shared_headers":[],"recipient_headers":[],"recipient_key":{"crv":"P-256","kty":"EC","x":"Kuh77MGkweIENgR_3WjzJ4gEF47yn6yQWAeeNqYC5qo","y":"1koAqIfb5C2PkCT1GYEcW4IcIEdrgOdMcua6G0Eyhtc"}} | 37,363.520μs | 37,363.520μs | 37,363.520μs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'vendor/autoload.php'; | |
use Jose\Factory\JWKFactory; | |
use Jose\Factory\JWSFactory; | |
$key_file = '/PATH/TO/KEY/FILE'; | |
$secret = null; // If the key is encrypted, the secret must be set in this variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Lexik\Bundle\JWTAuthenticationBundle\Exception; | |
/** | |
* Base class for exceptions thrown during JWTEncoderInterface::decode(). | |
* | |
* @author Robin Chalas <[email protected]> | |
*/ | |
class JWTDecodeFailureException extends JWTFailureException |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// src/Acme/ApiBundle/OAuth/SROCGrantType.php | |
namespace Acme\ApiBundle\OAuth; | |
use FOS\OAuthServerBundle\Storage\GrantExtensionInterface; | |
use OAuth2\Model\IOAuth2Client; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "my/example", | |
"require": { | |
"spomky-labs/jose-service": "~0.0.6" | |
}, | |
"authors": [ | |
{ | |
"name": "John Smith", | |
"email": "[email protected]" | |
} |
NewerOlder