Sample code for 30+ languages & platforms
C++

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat C++ Downloads

C++
#include <CkSecureString.h>

void ChilkatSample(void)
    {
    bool success = false;

    CkSecureString str;
    str.put_MaintainHash("sha256");
    str.Append("Hello World");

    const char *encodedHash = str.hashVal("base64");
    std::cout << encodedHash << "\r\n";
    }