login about faq

Do you have c++ example of doing CRC32 to string and file and then encode the CRC32 result to base64?

I could not find any CR32 example on Chilkat website.

asked Jun 14 '12 at 21:34

hsujong's gravatar image


    CkZipCrc crcObj;
    CkByteData db;

db.appendStr("Some data for CRC32...");

uint32_t crc = crcObj.CalculateCrc(db);

CkByteData dbCrc;
    // Note: The "CkByteData::append" method is overloaded, and overloaded methods introduce
    // complications when generating "C" wrappers.  Because of this, the above append method
    // will be changed to "append2" for the 2-argument overload.  When the next official
    // version is released, the above line will need to be changed to "append2".  This will
    // be documented in the release notes.

CkString strBase64;
    printf("base64 crc = %s\n",strBase64.getString());

answered Jun 15 '12 at 09:53

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jun 14 '12 at 21:34

Seen: 2,858 times

Last updated: Jun 15 '12 at 09:53

powered by OSQA