Project

General

Profile

Wt::Utils::sha1 parameter

Added by Derek Spenser almost 10 years ago

Wt::Utils::sha1 function: the documentation shows a parameter variable named 'data' while the source code shows a parameter variable named 'text'. Is binary data supposed to be passed to this function or a character string? Looking at the documentation I thought binary data, but looking at the source code it appears to be a character string. Now I'm a little confused. Any help would be appreciated.

Thanks.


Replies (2)

RE: Wt::Utils::sha1 parameter - Added by Wim Dumon almost 10 years ago

Hi Derrek,

The function takes a collection of 8 bit values that you stuff together in an std::string. It can be binary, it can be text, it does not matter.

Wim.

    (1-2/2)