SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
hash.cpp File Reference
#include "hash.h"
#include "mbedtls/md.h"
#include "mbedtls/base64.h"
#include "sensesp/net/debug_output.h"
Include dependency graph for hash.cpp:

Go to the source code of this file.

Functions

void Sha1 (String payload_str, uint8_t *hash_output)
 SHA-1 hash function.
 
String Base64Sha1 (String payload_str)
 A base64-encoded SHA-1 hash function.
 

Function Documentation

◆ Base64Sha1()

String Base64Sha1 ( String  payload_str)

A base64-encoded SHA-1 hash function.

For filesystem compatibility, the output string is further scrubbed to replace "/" with "_".

Parameters
payload_str
Returns
String

Definition at line 46 of file hash.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Sha1()

void Sha1 ( String  payload_str,
uint8_t hash_output 
)

SHA-1 hash function.

Calculate a SHA-1 hash of the given payload.

Parameters
payload_str
hash_outputA 20-character output array
Returns
String

Definition at line 19 of file hash.cpp.

Here is the caller graph for this function: