ActiveTcl User Guide

[ Main table Of Contents | Tcllib Table Of Contents | Tcllib Index ]

base64(n) 2.3.1 "base64 en- & decoding"

NAME

base64 - Procedures to encode and decode base64

TABLE OF CONTENTS

    TABLE OF CONTENTS
    SYNOPSIS
    DESCRIPTION
    KEYWORDS
    COPYRIGHT

SYNOPSIS

package require Tcl 8
package require base64 ?2.3.1?

::base64::encode ?-maxlen maxlen? ?-wrapchar wrapchar? string
::base64::decode string

DESCRIPTION

This package provides procedures to encode binary data into base64 and back.

::base64::encode ?-maxlen maxlen? ?-wrapchar wrapchar? string
Base64 encodes the given binary string and returns the encoded result. Inserts the character wrapchar every maxlen characters of output. wrapchar defaults to newline. maxlen defaults to 60.

::base64::decode string
Base64 decodes the given string and returns the binary data. The decoder ignores whitespace in the string.

KEYWORDS

base64 , encoding

COPYRIGHT

Copyright © 2000, Eric Melski
Copyright © 2001, Miguel Sofer

Copyright © 2004 for compilation: ActiveState