PURPOSE: A digital opening and closing device and a control method thereof are provided to minimize the risk of exposure of a password. CONSTITUTION: An input and output part(110) is comprised of an output module(112) and an input module(111). The output module outputs information which is necessary for a user by a control signal of a controller. The input module is input which is necessary for the operation from a user. A storing part stores information which is inputted or outputted through the input and output part and stores a program which is necessary for the operation of the controller. An opening and closing device part(130) maintains or releases locking state of a locking device by the control signal of the controller. An alarm generating part(140) generates warning sounds to the user in case of the generation of errors of an input mode or a password. [Reference numerals] (100) Controller; (111) Input module; (112) Output module; (120) Storing part; (130) Opening and closing device part; (140) Alarm generating part