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. This option can be allowed by using the sqlite feature flag. When using SQLite, any similarity functions must be calculated by MalwareDB.

Modules§

types
File Metadata convenience data structure

Structs§

DatabaseInformation
Version information for the database, and some basic stats
MDBConfig
Malware DB configuration which is stored in the database
VtStats
VT record information for files in Malware DB

Enums§

DatabaseType
Database handle for SQLite or Postgres

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