The present invention relates to the technical field of e-commerce, and discloses an encrypted file extracting device for e-commerce based on a photoresistor, which includes a casing and a rotating shaft, and a motor is movably connected to the outside of the casing, and a gear is movably connected to the outside of the motor. , gear two is meshed with the outside of gear one, the outside of gear two is fixedly connected with a rotating rod, and the outside of the rotating rod is movably connected with a rotating cylinder; through the shell, motor, gear one, gear two, rotating rod, rotating cylinder, inclined plate, Under the interaction between the slide bar, the push rod and the movable bar, the user can only start the operation of the device through the external fingerprint code lock, which ensures the protection of the device and strengthens the security of the file hard disk , and the transmission between the structures can make the push rod reciprocate, which provides a basis for the user to extract the corresponding files later, ensures the convenience of file extraction, and saves time and effort.