This repository has been archived by the owner on Dec 30, 2020. It is now read-only.
Releases: Spomky-Labs/jose
Releases · Spomky-Labs/jose
Version 7.1.0
Version 6.1.7
This bug release fixes #314
v7.0.1: Apply fixes from StyleCI (#315)
- Fix: #312. Thanks to @fkupper
Version 7.0.0
PHP 7.0 minimum
Version 6.1.6
Version 6.1.5
Minor correction:
- The storage folder is created if possible
Version 6.1.4
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());
Version 6.1.3
- AES GCM algorithms improvements
Version 6.1.2
- Dependencies updated.
- Tests on PHP 7.1 added
Version 6.1.1
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.