I just started working on a project and before I begin I have a few question about a peice of code I need to put together, and how it will need to work.
This code will be generating serial numbers that when ran through an algorithm will equal an identifier. The algorithm is nothing special.
The serial number will need to be broken up in to 4 sets of 5: (Preferably hexadecimal)
Example: 00A00-0B000-F00C0-0000D
The identifier will just be 1 set of numbers:
Example: 15456548
What I am looking to create is a script that could add(array_sum?) the hexadecimals in a serial number together, dived by 10 and equal the identifier(15456548). The script will need to create as many instances of the serial numbers as I tell it.
Program Example:
Identifier: 22807.4
How Many Serial Numbers To Make: 2
Serial Numbers:
45154-54587-58458-69875
55457-45584-18658-49578
(These serial numbers equal the identifier(22807.4) when added up and divided by 10)
I'm not sure if anyone could help me come up with something, or at least explain the process, but I've never built anything like this in PHP before.