It compiles no encript
This commit is contained in:
38
include/func.hpp
Normal file
38
include/func.hpp
Normal 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
|
||||
Reference in New Issue
Block a user