It compiles no encript

This commit is contained in:
Nikola Petrov
2024-01-14 21:43:49 +01:00
parent 3935c3f34e
commit 36de6ec412
19 changed files with 500 additions and 406 deletions

38
include/func.hpp Normal file
View File

@@ -0,0 +1,38 @@
#ifndef FUNC_HPP
#define FUNC_HPP
#include <string>
class Buffer;
struct LoginInfo
{
uint32_t label;
uint32_t username;
uint32_t password;
};
struct LoginInfoPointer
{
const char *label;
const char *username;
const char *password;
};
struct Index
{
uint32_t count;
uint32_t offset;
};
int find_logininfo_in_buffer(Buffer &buffer, const char *label);
void delete_logininfo_from_buffer(Buffer &buffer, int index_of_pass);
void add_logininfo_to_buffer(Buffer &buffer, const char *label, const char *username, const char *password);
LoginInfoPointer get_logininfo_pointer_from_buffer(Buffer &buffer, int index_of_pass);
void generate_password(std::string &password, int len);
#endif