The EGGbone Huawei Unlock Code Calculator is a software tool designed to calculate unlock codes for Huawei devices. It works by generating a unique unlock code based on your device's IMEI number, which can then be used to unlock your phone.
If you are trying to unlock a smartphone rather than a modem, the process has changed significantly: HMUC-Huawei Modem Unlock Codes - Apps on Google Play
Reverse-engineering efforts on GitHub and other archives have shown that the original Eggbone algorithm was a variant of a fed through a proprietary table. For each IMEI, the calculator would generate a specific unlock code. However, Huawei began randomizing salts (additional secret inputs) per device batch after 2013, making the algorithm obsolete.