The invention belongs to the technical filed of access control, and discloses an access control system used for an electronic code. The access control system comprises a solar energy power supply module, an infrared shooting module, a single-chip microcomputer control module, an iris recognition module, a decryption module, an infrared induction module, a closure module, and a display module. Thecontinuous solar energy can be obtained through the solar energy power supply module, continuous operation of the access control system can be guaranteed, energy is saved, and the access control system has the advantages of economy and environmental protection; the iris characteristic information of the user can be obtained through the iris identification module, a pre-generated vault value is read, and a decryption secret key is calculated; whether the calculated decryption secret key is matched with a preset encryption key is determined, if the result is positive, the iris identification issuccessfully confirmed, encryption protection is carried out on a terminal, the leakage of the iris characteristic information is effectively prevented, and the security is high.