mod_perl logo perl icon
previous page: APR - Perl Interface for Apache Portable Runtime (libapr and
libaprutil Libraries)page up: mod_perl 2.0 APInext page: APR::Brigade - Perl API for manipulating APR Bucket Brigades

APR::Base64 - Perl API for APR base64 encoding/decoding functionality






mod_perl Pocket Reference

mod_perl Pocket Reference

By Andrew Ford
Writing Apache Modules with Perl and C

Writing Apache Modules with Perl and C

By Lincoln Stein, Doug MacEachern
Embedding Perl in HTML with Mason

Embedding Perl in HTML with Mason

By Dave Rolsky, Ken Williams
mod_perl2 User's Guide

mod_perl2 User's Guide

By Stas Bekman, Jim Brandt
Practical mod_perl

Practical mod_perl

By Stas Bekman, Eric Cholet
The mod_perl Developer's Cookbook

The mod_perl Developer's Cookbook

By Geoffrey Young, Paul Lindner, Randy Kobes


Table of Contents

Synopsis

  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);


TOP

Description

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



TOP

API

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



TOP

decode

Decode a base64 encoded string

  $decoded = decode($encoded);


TOP

encode

Encode a string to base64

  $encoded = encode($clear);


TOP

encode_len

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

  $len_enc = encode_len($len_clear);


TOP

See Also

mod_perl 2.0 documentation.



TOP

Copyright

mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.



TOP

Authors

The mod_perl development team and numerous contributors.






TOP
previous page: APR - Perl Interface for Apache Portable Runtime (libapr and
libaprutil Libraries)page up: mod_perl 2.0 APInext page: APR::Brigade - Perl API for manipulating APR Bucket Brigades