This commit is contained in:
2025-11-03 12:31:15 +01:00
parent 5d9850a781
commit 453bb91e24
5 changed files with 41 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include "common.h"
#include <botan/secmem.h>
#include <fstream>
#include <optional>
#include <vector>
@@ -17,7 +18,7 @@ struct FileHeader {
class Vault {
public:
explicit Vault(std::string path);
explicit Vault(std::string path, const std::string &password);
std::vector<FileHeader> read_file_headers();
std::optional<std::string> read_file(const std::string &name);
@@ -30,4 +31,5 @@ public:
private:
std::string m_path;
std::fstream m_file;
Botan::secure_vector<u8> m_key;
};