Spomky Labs Jose Versions Save

:closed_lock_with_key: JSON Object Signing and Encryption Framework (JWT, JWS, JWE, JWA, JWK, JWKSet and more)

v7.1.0

6 years ago

This new minor release allows custom headers to be set to the X5U/JKU requests.

v6.1.7

6 years ago

This bug release fixes #314

v7.0.1

6 years ago
  • Fix: #312. Thanks to @fkupper

v7.0.0

6 years ago

PHP 7.0 minimum

v6.1.6

6 years ago

This release fixes the following bug:

  • #290 and #292: missing key set rotation interval fixed (@mdeboer)

v6.1.5

6 years ago

Minor correction:

  • The storage folder is created if possible

v6.1.4

7 years ago

RSA Keys without primes can be used as any other keys. Primes are computed by the library.

Such keys SHOULD NOT be used as pure PHP computation are performed before the key is used.

We highly recomment you to pre-compute primes and save the new key:


use Jose\KeyConverter\RSAKey;
use Jose\Factory\JWKFactory;

$values = [
    'kty' => 'RSA',
    'n' => 'gVf-iyhwLn2J2Up4EKjwdLYmk5n24gjGk4oQkCHVcE7j8wkS1iSzcu0ApVcMPLklEp_PWycZE12vL90gPeVjF2IPL_MKFL0b6Wy7A1f4kCDkKv7TDDjt1IIwbS-Jdp-2pG7bPb3tWjJUu6QZBLoXfRtW3cMDkQjXaVGixENORLAZs6qdu2MMKV94jetCiFd0JYCjxGVC0HW2OKnM21B_2R1NubOvMlWA7gypdpvmBYDGpkw4mjV3walWlCZObG7IH84Ovl7wOP8XLzqi2un4e6fNzy3rdp4OUSPYItF4ZX5qThWYY2R47Z5sbrZxHjNeDECKUeio0KPQNrgr6FSKSw',
    'e' => 'AQAB',
    'd' => 'JSqz6ijkk3dfdSEA_0iMT_1HeIJ1ft4msZ6qw7_1JSCGQAALeZ1yM0QHO3uX-Jr7HC7v1rGVcwsonAhei2qu3rk-w_iCnRL6QkkMNBnDQycwaWpwGsMBFF-UqstOJNggE4AHX-aDnbd4wbKVvdX7ieehPngbPkHcJFdg_iSZCQNoajz6XfEruyIi7_IFXYEGmH_UyEbQkgNtriZysutgYdolUjo9flUlh20HbuV3NwsPjGyDG4dUMpNpdBpSuRHYKLX6h3FjeLhItBmhBfuL7d-G3EXwKlwfNXXYivqY5NQAkFNrRbvFlc_ARIws3zAfykPDIWGWFiPiN3H-hXMgAQ',
];

$rsa = new RSAKey($values);
$jwk = JWKFactory::createFromValues($rsa->toArray());

v6.1.3

7 years ago
  • AES GCM algorithms improvements

v6.1.2

7 years ago
  • Dependencies updated.
  • Tests on PHP 7.1 added

v6.1.1

7 years ago

This release fixes a bug when a PKCS#8 (private key) is loaded. It also includes a method that prepare the PEM to always get linebreaks after 64 characters.