Subversion Repositories ESP8266_P1_Meter

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 raymond 1
// SPDX-License-Identifier: LGPL-3.0-or-later
2
// Copyright 2016-2026 Hristo Gochkov, Mathieu Carbou, Emil Muratov, Will Miles
3
 
4
#pragma once
5
 
6
#include "Arduino.h"
7
 
8
bool checkBasicAuthentication(const char *header, const char *username, const char *password);
9
 
10
bool checkDigestAuthentication(
11
  const char *header, const char *method, const char *username, const char *password, const char *realm, bool passwordIsHash, const char *nonce,
12
  const char *opaque, const char *uri
13
);
14
 
15
// for storing hashed versions on the device that can be authenticated against
16
String generateDigestHash(const char *username, const char *password, const char *realm);
17
 
18
String generateBasicHash(const char *username, const char *password);
19
 
20
String genRandomMD5();