Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DBVersion is the current version of the go-hash database format. DBVersion = "GH01" // PrevDBVersion is the previous version of the database format. go-hash automatically migrates // databases from its previous version. PrevDBVersion = "GH00" // MinDBLength V | S | B1 | B2 | B3 | B4 | MAC| E MinDBLength = 4 + 32 + 32 + 32 + 32 + 32 + 32 + 4 // MaxDBLength the maximum allowed size of a database MaxDBLength = 64 * 1000 * 1024 // Argon2Threads the fixed number of threads to use for the Argon2 Hash function. Argon2Threads uint8 = 4 )
Variables ¶
This section is empty.
Functions ¶
func WriteDatabase ¶
WriteDatabase writes the encrypted database to the given filePath with the provided state and key.
Types ¶
Click to show internal directories.
Click to hide internal directories.