APR::Base64(3pm)

APR::Base643pm

Perl api for apr base64 encoding/decoding functionality

Usage

  use APR::Base64 ();
  
  my $clear   = "foo"
  my $encoded = APR::Base64::encode($clear);
  my $decoded = APR::Base64::decode($encoded);
  my $len_enc = APR::Base64::encode_len(length $clear);

Overview

"APR::Base64" provides the access to APR's base64 encoding and decoding API.

API

"APR::Base64" provides the following functions and/or methods:

"decode"

Decode a base64 encoded string

  $decoded = decode($encoded);
arg1: $encoded ( string )

The encoded string.

ret: $decoded ( string )

The decoded string.

since: 2.0.00

"encode"

Encode a string to base64

  $encoded = encode($clear);
arg1: $clear ( string )

The unencoded string.

ret: $encoded ( string )

The encoded string.

since: 2.0.00

"encode_len"

Given the length of an unencoded string, get the length of the encoded string.

  $len_enc = encode_len($len_clear);
arg1: $len_clear ( integer )

the length of an unencoded string.

ret: $len_enc ( integer )

the length of the string after it is encoded

since: 2.0.00

Releases

10 releases since Debian 4.0 (Etch); the text changed 9 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12
  10. 13

Authors

The mod_perl development team and numerous contributors.

From libapache2-mod-perl2 2.0.13-2+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.