Abstract: A combination lock for a safe or the like is provided that is fully computerized and self powered. A rotary dial is connected to a stepper motor/generator to provide the electrical power to a capacitor to power the system. The stepper motor/generator also provides input signals in the form of a code sequence to a microprocessor that processes the signals to initiate the operation of a drive motor to release a lock bolt once the proper combination is dialed. A read only memory (ROM) determines the proper combination from a combination storage means and feeds the combination to the microprocessor for comparison to the inputted signals from the dial. As each combination dialing sequence is begun, a random code initiator provides a different starting position in the sequence so that electronic or visual surveillance equipment cannot be used to surreptitiously obtain the combination.