In order to improve the capability of scrambling encryption and anti-aggressive, we extended the two-dimensional Arnold transformation to three-dimensional, and designed one kind of new diffusion equation of the digital image pixel gray value, then introduced a novel digital image encryption algorithm based on them. The large number of simulation results and analysis have both shown that the proposed scheme is a very effective encryption algorithm.