Module db

Module db 

Source
Expand description

Database I/O Postgres is the database used by MalwareDB. However, SQLite will be used for unit testing or for small instances of MalwareDB. This option can be allowed by using the sqlite feature flag. When using SQLite, MalwareDB will calculate the distances for the similarity hashes.

Modules§

types
File Metadata convenience data structure

Structs§

DatabaseInformation
Version information and basic stats for the database
FileAddedResult
Data returned when adding a new sample
MDBConfig
Malware DB configuration which is stored in the database
VtStatsvt
VT record information for files in Malware DB

Enums§

DatabaseType
Database connection handle

Constants§

PARTIAL_SEARCH_LIMIT
The maximum amount of partial hash and/or partial file name search results to prevent performance issues

Functions§

hash_password
Hash a password string with Argon2
random_bytes_api_key
Generate a new, random API key