Universal calculators work by using proprietary algorithms to reverse-engineer these codes based on the device's .