LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
KeyEncryption.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5namespace util
6{
7
16{
17public:
23 static std::string Encrypt(const std::string& plaintext);
24
30 static std::string Decrypt(const std::string& ciphertext);
31
37 static bool IsEncrypted(const std::string& value);
38
39private:
40 // Implementation helpers are internal to KeyEncryption.cpp
41};
42
43} // namespace util
Simple API key encryption/decryption utility.
Definition KeyEncryption.hpp:16
static std::string Encrypt(const std::string &plaintext)
Encrypt an API key.
Definition KeyEncryption.cpp:83
static std::string Decrypt(const std::string &ciphertext)
Decrypt an API key.
Definition KeyEncryption.cpp:93
static bool IsEncrypted(const std::string &value)
Check if a string appears to be encrypted.
Definition KeyEncryption.cpp:113
Utility components and helper types for the LogViewer application.