34 lines
605 B
C++

#pragma once
#include <string>
class Buffer;
struct LoginInfo
{
uint32_t label;
uint32_t password;
};
struct LoginInfoPointer
{
const char* label;
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* password);
LoginInfoPointer get_logininfo_pointer_from_buffer(Buffer& buffer, int index_of_pass);
void generate_password(std::string& password, int len);