SHA1 package object

The SHA1 package provides the cryptographic hash function to encode any data with the SHA1 algorithm.


In order to make use of sha1 package, two simple steps are required: the first one is to include the package header file on top of your code, then perform an explicit package inside duda_main() function.


/* Include package header */
#include "packages/sha1/sha1.h"

int duda_main()
    duda_load_package(sha1, "sha1");
    return 0;

Once the package is loaded, you can use any methods from your callbacks in the following way: