You are here: home > resources > cyoencode
CyoEncode provides functions for encoding and decoding data into and from base16 (hex), base32, and base64 data. This is used in many areas - base64 is commonly used in everyday SMTP mail messages, for example. Note that encoding is not compression: it simply reduces a byte stream to printable ASCII characters, actually increasing the size of the data as a side effect (e.g. where the original data is a 100-byte stream containing values 0-255, the base64 encoding will be a 136-byte stream containing values 0-63, the effect being that these can be ASCII-encoded).
Click here for the RFC reference.
Simply extract the four source files from the downloadable zip archive, copy into the folder containing your project's source files, then add them to your project!
Note that encoding and decoding are implemented in separate files - ie. CyoEncode.h/cpp and CyoDecode.h/cpp - so that you won't need to include the encoding files if you're only decoding, and vice versa.
ANSI-compatible C++ source.
The source code contains the following statement: "This source code may be used, modified, compiled, duplicated, and/or distributed without restriction provided this copyright notice remains intact. Cyotec Systems Limited and/or its employees cannot be held responsible for any direct or indirect damage or loss of any kind that may result from using this code, and provides no warranty, guarantee, or support." By downloading the source code you automatically agree to these licence terms.
Version 1.0.1 - 4th November 2004
Download the CyoEncode source code here (6 KB)
MD5 hash: 4FF63F7A4EBB6EA43CBD99EEC9BDDE42SHA1 hash: 141164663BD9A0596E73A9B18EFE3F3CF0F06EE1
Copyright © Cyotec Systems, 2003-2009. All rights reserved.