Lolly 1.4.27
Loading...
Searching...
No Matches
sha.hpp
Go to the documentation of this file.
1
2/******************************************************************************
3 * MODULE : sha.hpp
4 * DESCRIPTION: sha digest
5 * COPYRIGHT : (C) 2023 Darcy Shen
6 *******************************************************************************
7 * This software falls under the GNU general public license version 3 or later.
8 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
9 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
10 ******************************************************************************/
11
12#pragma once
13
14#include "string.hpp"
15#include "url.hpp"
16
17namespace lolly {
18namespace hash {
19enum sha_mode : long { SHA2_224= 224, SHA2_256= 256 };
21string sha224_hexdigest (url u);
22string sha256_hexdigest (url u);
23} // namespace hash
24} // namespace lolly
int hash(pointer ptr)
Computes a hash value for a pointer.
Definition basic.cpp:17
The list class represents a linked list.
Definition list.hpp:48
Definition url.hpp:37
string sha224_hexdigest(url u)
Definition sha.cpp:86
string sha_hexdigest(url u, sha_mode mode)
Definition sha.cpp:24
string sha256_hexdigest(url u)
Definition sha.cpp:91
@ SHA2_224
Definition sha.hpp:19
@ SHA2_256
Definition sha.hpp:19