NAME
Crypt::JWS::OpenSSL::Role::Encoder - Provides encoding and decoding methods.
Composed into
VERSION
version 0.001
METHODS
encode_jwt_segment
Accepts a hash refrence. Encodes the hash reference as JSON and returns the Base64 URL encoded JSON.
decode_jwt_segment
Accepts a Base64 URL encoded JSON string. Decodes the input and returns the decoded JSON as a hash reference.
encode_jwt_signature
Accepts raw bytes and returns the Base64 URL encoded result.
decode_jwt_signature
Accepts a Base64 URL encoded string and returns the raw decoded bytes.
encode_jwk_element
Accepts raw bytes and returns the Base64 URL encoded result.
decode_jwk_element
Accepts a Base64 URL encoded string and returns the raw decoded bytes.
encode_rsa_private_key_pem
Accepts a der encoded RSA private key and returns the pem encoded result.
encode_rsa_public_key_pem
Accepts a der encoded RSA public key and returns the pem encoded result.
encode_ecc_private_key_pem
Accepts a der encoded EC private key and returns the pem encoded result.
encode_ecc_public_key_pem
Accepts a der encoded EC public key and returns the pem encoded result.
decode_pem
Decodes a pem format key and returns the der result.
encode_base64_url
Convenience method
decode_base64_url
Convenience method
encode_base64
Convenience method
decode_base64
Convenience method
AUTHOR
Mark Dootson <mdootson@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2026 by Mark Dootson
This library is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.