lintel 0.2.0
Loading...
Searching...
No Matches
Cryption.h
Go to the documentation of this file.
1#ifndef LINTEL_CRYPTION_H
2#define LINTEL_CRYPTION_H
3
4#include <cstdint>
5
6#include <string>
7
8namespace lintel {
11{
12public:
15
23 static std::string hashOf(const std::string &password);
24
32 static bool verifyOf(const std::string &password, const std::string &storedHash);
33
35 static bool isModernHash(const std::string &storedHash);
36
42 static std::string hashOfSha512(const std::string &text);
43
47 static std::string encodeBase64(const std::string &in);
48
52 static std::string decodeBase64(const std::string &in);
53};
54
55}// namespace lintel
56#endif// LINTEL_CRYPTION_H
Definition Cryption.h:11
static std::string decodeBase64(const std::string &in)
static bool verifyOf(const std::string &password, const std::string &storedHash)
static bool isModernHash(const std::string &storedHash)
static std::string hashOfSha512(const std::string &text)
static std::string hashOf(const std::string &password)
static std::string encodeBase64(const std::string &in)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9