Acme-JWT

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

no_index:
  directory:
    - inc
    - t
    - xt
requires:
  Crypt::OpenSSL::RSA: 0.28
  Digest::SHA: 5.63
  JSON: 2.53
  MIME::Base64: 3.13
  Try::Tiny: 0.09
resources:
  license: http://dev.perl.org/licenses/
  repository: git://github.com/clairvy/p5-Acme-JWT.git
version: 0.04

Makefile.PL  view on Meta::CPAN

use inc::Module::Install;
name 'Acme-JWT';
all_from 'lib/Acme/JWT.pm';

requires 'Crypt::OpenSSL::RSA' => '0.28';
requires 'JSON' => '2.53';
requires 'MIME::Base64' => '3.13';
requires 'Try::Tiny' => '0.09';
requires 'Digest::SHA' => '5.63';

tests 't/*.t';
author_tests 'xt';

test_requires 'Test::More' => '0.87_01';
auto_set_repository;
auto_include;
WriteAll;

lib/Acme/JWT.pm  view on Meta::CPAN

package Acme::JWT;
use strict;
use warnings;
our $VERSION = '0.04';

use JSON qw/decode_json encode_json/;
use MIME::Base64 qw/encode_base64url decode_base64url/;
use Try::Tiny;
use Digest::SHA qw/hmac_sha256 hmac_sha384 hmac_sha512/;
use Crypt::OpenSSL::RSA;

our $has_sha2;
BEGIN {
    $has_sha2 = 0;
    if (UNIVERSAL::can('Crypt::OpenSSL::RSA', 'use_sha512_hash')) {
        $has_sha2 = 1;
    }
}



( run in 0.398 second using v1.01-cache-2.11-cpan-05444aca049 )