IMEI generation and verification library.
- Generates valid IMEI numbers.
- Verifies if an IMEI number is valid.
This project has no dependencies.
Nearly all my projects use CMake. It's very simple:
mkdir build
cd build
cmake ..
make -j `nproc`
If you want to install compiled stuff to system (default location is /usr/local/
), just run make install
.
You can have a look at the examples, imei_generate.c
and imei_verify.c
.
This library uses /dev/urandom
directly as random number source. It may not work on non-POSIX platforms.