Side channel attack is a kind of attack against smart card. Differential power analysis attack (DPA) has received extensive attention and application because of its simple implementation, the ability and characteristics of the specific encryption algorithm-independent. DPA attack capture power consumption signal waveform, though analysis, statistics and computing to recover keys. No matter whether the encryption algorithm implemented by the software or specialized hardware encryption module, are all vulnerable.In this paper, two of the DES algorithm for smart card against DPA attack strategy have been implemented based on the research of smart card, DES algorithm, smart card attack and anti-attack strategy, including:Implementation of random delay:insert a random time using a random function inside of DES algorithm. Although this approach is able to increase difficulties of the DPA attacks, it cannot completely prevent DPA attacks.Implementation of random S-Box:we designed two kinds of random S-Box algorithm in this paper. The one is in each round of DES, a random number determine which a S-Box to be operated first, and then the following S-Boxes are operated in an ascending order (modulo8); The anther one in each round of DES, each S-Box is operated using a random order determined by the random value for each of them. Obviously, the latter has a stronger performance. |