Module binary_file

Module binary_file 

Source
Expand description

Binary file format handling for .bin files.

Implements the promocrypt binary file format including:

  • Two-key encryption (machineID + secret)
  • Machine binding
  • Counter management
  • Code generation and validation
  • Storage encryption for database codes
  • History tracking and generation logs

Structs§

BinConfig
Configuration stored in a .bin file.
BinFile
Handle to an opened .bin file.
BinStats
Statistics about a .bin file.

Enums§

AccessLevel
Access level when opening a .bin file.

Functions§

create_config
Simple helper to create a BinConfig with defaults.