Home

Awesome

cocoa <a href="https://travis-ci.org/r-lyeh/cocoa"><img src="https://api.travis-ci.org/r-lyeh/cocoa.svg?branch=master" align="right" /></a>

Sample

#include <cassert>
#include <string>
#include "cocoa.hpp"

int main() {
    std::string hash = cocoa::SHA1("hello world");
    std::cout << hash << std::endl;
    assert( cocoa::SHA1("hello world") == cocoa::SHA1("hello world") );
    return 0;
}

Possible output


<pre> ~/cocoa>./test 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed ~/cocoa> </pre>

C++03

Check old c++03 version here

API

For more details check the tests.cxx file.

Cocoa::hash() API

Changelog