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§
- Database
Information - Version information and basic stats for the database
- File
Added Result - Data returned when adding a new sample
- MDBConfig
- Malware DB configuration which is stored in the database
- VtStats
vt - VT record information for files in Malware DB
Enums§
- Database
Type - 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