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§
- Code
Format - Code format options for prefix, suffix, and separators.
- Code
Generator - Iterator for generating codes lazily.
Enums§
- Check
Position - 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.