Module generator

Module generator 

Source
Expand description

Code generation using HMAC-SHA256.

This module provides functions for generating promotional codes from counter values using HMAC-SHA256 and the Damm check digit algorithm.

Structs§

CodeFormat
Code format options for prefix, suffix, and separators.
CodeGenerator
Iterator for generating codes lazily.

Enums§

CheckPosition
Index-based check digit position.

Functions§

generate_batch
Generate a batch of promotional codes.
generate_batch_into
Generate codes into a pre-allocated vector for better performance.
generate_code
Generate a single promotional code from a counter value.