2017 © Pedro Peláez
 

library jws-ecdsa

ECDSA signers for lcobucci/jwt

image

jdr/jws-ecdsa

ECDSA signers for lcobucci/jwt

  • Saturday, December 9, 2017
  • by jdr
  • Repository
  • 1 Watchers
  • 1 Stars
  • 186 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 10 % Grown

The README.md

jws-ecdsa

Latest Version on Packagist ![Software License][ico-license] Build Status ![Total Downloads][ico-downloads], (*1)

ECDSA signers for lcobucci/jwt., (*2)

This library was created in order to support mdanter/ecc 0.4.x in combination with lcobucci/jwt 3.x and will be deprecated once lcobucci/jwt itself offers support for this version of the mdanter/ecc library., (*3)

Instalation

Require the library with composer:, (*4)

composer require jdr/jws-ecdsa

Usage

The signers supplied by this library are drop in replacements for the ones supplied by lcobucci/jwt., (*5)

use Lcobucci\JWT\Builder;
use Lcobucci\JWT\Signer\Key;
use JDR\JWS\ECDSA\ES256;

$signer = new ES256();

$privateKey = new Key('file://...');

$token = (new Builder())
    ->setIssuedAt(time())
    ->setExpiration(time() + 3600)
    // ... Set additional claims
    ->sign($signer, $privateKey)
    ->getToken();

$publicKey = new Key('file://...');

$token->verify($signer, $publicKey);

Credits

License

The MIT License (MIT). Please see License File for more information., (*6)

The Versions

09/12 2017

dev-master

9999999-dev

ECDSA signers for lcobucci/jwt

  Sources   Download

MIT

The Requires

 

The Development Requires

09/12 2017

0.4.1

0.4.1.0

ECDSA signers for lcobucci/jwt

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2016

0.4.0

0.4.0.0

ECDSA signers for lcobucci/jwt

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2016

0.3.1

0.3.1.0

ECDSA signers for lcobucci/jwt

  Sources   Download

MIT

The Requires

 

The Development Requires

29/11 2016

0.3.0

0.3.0.0

ECDSA signers for lcobucci/jwt

  Sources   Download

MIT

The Requires

 

The Development Requires

20/08 2016

0.2.0

0.2.0.0

ECDSA signers for lcobucci/jwt

  Sources   Download

MIT

The Requires

 

The Development Requires

18/08 2016

0.1.0

0.1.0.0

ECDSA signers for lcobucci/jwt

  Sources   Download

MIT

The Requires

 

The Development Requires