Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
dnsjit.lib.base64url(3)     Library Functions Manual	 dnsjit.lib.base64url(3)

NAME
     dnsjit.lib.base64url - Utility library to convert data to base64url format

SYNOPSIS
       local base64url = require("dnsjit.lib.base64url")

   Encoding and decoding lua strings
       local encoded = base64url.encode("abcd")
       local decoded = base64url.decode(encoded)

   Encoding C byte arrays
       local pl  -- pl is core.object.payload
       local encoded = base64url.encode(pl.payload, pl.len)

DESCRIPTION
     Encode and decode data to/from base64url format.

   Functions
     Base64Url.encode(data, data_len)
	    Encode  lua string or C byte array to base64url representation.  The
	    input string may contain non-printable characters.

	    data_len is length of the input data (optional for lua strings,  re-
	    quired for C byte arrays).

     Base64Url.decode(data)
	    Decode  a  base64url encoded lua string.  The output string may con-
	    tain non-printable characters.

SEE ALSO
     dnsjit.core.object.payload(3)

AUTHORS and CONTRIBUTORS
     Jerry LundstrA<paragraph>m (DNS-OARC),  TomA!A!  KAAA3/4ek  (CZ.NIC),  Petr
     A paAek (ISC)

     Maintained by DNS-OARC

	    https://www.dns-oarc.net/

BUGS
     For issues and feature requests please use:

	    https://github.com/DNS-OARC/dnsjit/issues

     For question and help please use:

	    admin@dns-oarc.net

dnsjit				      1.4.0		 dnsjit.lib.base64url(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=dnsjit.lib.base64url&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help