JSON::JWT

JSON Web Token (JWT) implementation for Raku

NAME

JSON::JWT - JSON Web Token (JWT) implementation for Raku

SYNOPSIS

use JSON::JWT;

my $jwt = encode($data, :alg<none>);             # no encryption
my $jwt = encode($data, :alg<HS256>, :$secret);  # HS256 encryption
my $jwt = encode($data, :alg<RS256>, :$pem);     # RS256 encryption

my $data = decode($jwt, :alg<none>);             # no encryption
my $data = decode($jwt, :alg<HS256>, :$secret);  # HS256 encryption
my $data = decode($jwt, :alg<RS256>, :$pem);     # RS256 encryption

DESCRIPTION

JSON::JWT provides a class with an implementation of the JSON Web Token (JWT) standard, with support for HS256 and RS256 encryption, or no encryption..

AUTHOR

Andrew Egeler

Source can be located at: https://github.com/raku-community-modules/JSON-JWT . Comments and Pull Requests are welcome.

COPYRIGHT AND LICENSE

Copyright 2017 - 2018 Andrew Egeler

Copyright 2019 - 2022 Raku Community

All files in this repository are licensed under the terms of Create Commons License; for details please see the LICENSE file

JSON::JWT v1.1

JSON Web Token (JWT) implementation for Raku

Authors

    License

    MIT

    Dependencies

    JSON::FastMIME::Base64OpenSSLDigest::HMAC

    Test Dependencies

    Provides

    • JSON::JWT

    The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.