Change generate to be cryptographically secure

/dev/urandom, BCryptGenRandom
This commit is contained in:
nikola
2024-07-02 11:57:00 +02:00
parent d5af421932
commit a01cfd8f25
4 changed files with 502 additions and 6 deletions

View File

@@ -34,6 +34,6 @@ void add_logininfo_to_buffer(Buffer &buffer, const char *label, const char *user
LoginInfoPointer get_logininfo_pointer_from_buffer(Buffer &buffer, int index_of_pass);
void generate_password(std::string &password, int len);
bool generate_password(std::string &password, int len);
#endif