Base64 Encoding ActiveX Library 1.0

This library implements the Base64 encoding system as it is defined in RFC 2045: Multipurpose Internet Mail Extensions (MIME), Part One: Format of Internet Message Bodies. This encoding is used as a standard to send binary information through network connections or by e-mail.

Note: Although this system is very similar to the one I implemented in the RC4 and RC2 algorithms, they are not compatible.

History:

  • 23.05.98 Version 1.0 released.

Properties:

  • LastError. This property will inform you if some error ocurred when encoding or decoding data. Its possible values are: B64_ERROR_NO_TEXT, B64_ERROR_WRONG_LENGTH or B64_NO_ERROR. If you try to pass not valid data to be decoded, you will receive an error saying the the length of the passed data is wrong, and will receive wrong data as result, if any.

Methods:

  • Encode (sText As String) As String. This method will encode the data passed in sText.
  • Decode (sText As String) As String. This method will decode the data passed in sText.

 

(11 Kb)

© Alvaro Redondo, 1998. All Rights Reserved.
http://www.sevillaonline.com/ActiveX/