The invention relates to the technical field of e-commerce data encryption, and discloses a bus code swiping device for e-commerce data encryption based on the silicon controlled rectifier principle, including a card reader, a magnetic block connected to the lower end of the code swiping device, and a magnetic block The left and right sides are provided with coils, the cross bar includes: cylindrical hole and photoresistor, the right end of the slide plate is provided with a metal ball, the right side of the storage box is provided with a metal sheet corresponding to the metal ball, the rear end of the moving board is connected with the card reader A metal group is arranged between them, and the code brushing device is electrically connected with a thyristor. When the voltage is activated by the g-terminal and c-terminal of the thyristor, the code-scanning device will work; if the voltage of the g-terminal and c-terminal of the thyristor is removed, the code-scanning device can still be energized and work, through the start of the car, the effect of the car's inertia Next, the mobile plate moves forward, the metal group on the mobile plate is separated, and the code scanning device is finished. This structure solves the problem of power waste of the existing bus code scanning device for e-commerce.